|
Forms - Text Box (by John Kauffman & Charles Carroll)
| <INPUT NAME="NameLast"> |
This will create an input box of a default size
and the browser will pass the user input to ASP with the label (identifier) of NameLast. |
| <INPUT NAME="ZipCode"
SIZE="10"> |
This is not a limit to the
number of characters that can be entered. Do not use size as a validation technique to
limit verbose users. |
| <INPUT NAME="State"
MaxLength="2"> |
This controls the maximum number of characters
that can be entered. |
| <INPUT NAME="NameLast"
VALUE="Bertrand"> |
The name of Bertrand will appear when the page
is opened and will re-appear if the form is reset. |
filename=/learn/test/formtextbox.asp
<html><head>
<title>FormTextBox.asp</title>
</head><body bgcolor="#FFFFFF">
<Form action = "FormTextBoxRespond.asp" method="get">
Fill Out This Form For Us:<p>
Last Name -> <Input NAME="NameLast" size ="10"><br>
Country -> <Input NAME="Country" value="USA" size="10"><br>
State -> <Input NAME="State" MaxLength="2" size="2"><br>
<Input type="submit" value="Give me your data!">
<hr></form>
</body></html>
filename=/learn/test/formtextboxrespond.asp
<html><head>
<title>FormTextBoxRespond.asp</title>
</head><body bgcolor="#FFFFFF">
<%
lname=request.querystring("namelast")
cty=request.querystring("country")
st=request.querystring("state")
response.write lname & "<br>"
response.write cty & "<br>"
response.write st & "<br>"%>
</body></html>
 |  |  |
 |
There are many worthy charities!!. But perhaps help starving children in Africa or South America AND help Charles too.
a $5 tip buys him lunch at McDonalds,
a $20 tip buys his kid Hitoshi a new computer game,
a $39 tip buys his daughter Michiko a few nice outfits.
See our donor list.
|  |
 |  |  |
|
|
|
|