Page

F.4.4- Sample Text Fields

Created by Brendan Doss.
Last Updated by Brendan Doss.  

PublicCategorized as Appendix F.

Not yet tagged
<< F.4.3- Common Errors for Text Type FieldsAppendixFF.5.0- Check Boxes >>

Sample Text Fields

The following code, Text01Form.htm, demonstrates the useof text fields:

 

<TITLE>Text_01_Form</TITLE>

</HEAD>

<BODY>

<H3>Text 01 Form</H3>

<FORM ACTION="Text01Response.asp"METHOD=GET>

Please type your First Name

<INPUT TYPE=TEXT NAME="NameFirst"VALUE="First Name"><BR>

Please type your Middle Name

<INPUT TYPE=TEXT NAME="NameMiddle"VALUE="Middle Name"><BR>

Please type your Last Name

<INPUT TYPE=TEXT NAME="NameLast"VALUE="Last Name"><BR>

<INPUT TYPE=SUBMIT>

</FORM>

</BODY>

 

This gives us the following screen:

 

AppendixF_image004.jpg

 

The response page is Text01Response.asp:

 

...

<TITLE>Text_01_Response</TITLE>

</HEAD>

<BODY>

<H3>Text 01 Response</H3>

<%

Response.Write "We have received your name as"

Response.WriteRequest.QueryString("NameFirst") & " "

Response.Write Request.QueryString("NameMiddle")& " "

Response.WriteRequest.QueryString("NameLast") & "."

...%>

 

And the result is:

 

AppendixF_image005.jpg

<< F.4.3- Common Errors for Text Type FieldsAppendixFF.5.0- Check Boxes >>

Copyright © 2003 by Wiley Publishing, Inc.

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |