HTML and CSS Reference
In-Depth Information
Introduce Standard Field Names
Rewrite your forms and form processing scripts to use conventional names for conventional things such as e-
mail addresses, credit card numbers, phone numbers, and so forth.
Code View:
<form action="/register" method="post">
<p>Salutation:
<label><input type="radio" name="n1" value="m" /> Mr.</label>
<label><input type="radio" name="n2" value="f" /> Ms.</label>
</p>
<p><label>First Name:
<input type="text" name="n3" />
</label></p>
<p><label>Last Name:
<input type="text" name="n4" />
</label></p>
<p><label>E-Mail Address:
<input type="text" name="e1" />
</label></p>
<p><label>Password:
<input type="password" name="p1" />
</label></p>
<p><label>Address Line 1:
<input type="text" name="a1" />
</label></p>
<p><label>Address Line 2:
<input type="text" name="a2" />
</label></p>
<p><label>City:
<input type="text" name="a3" />
</label></p>
<p><label>State/Province:
<input type="text" name="a4" />
</label></p>
<p><label>ZIP/Postal Code:
<input type="text" name="a5" /></label></p>
<p><label>Voice:
<input type="text" name="t1" />
</label></p>
<p><label>Fax:
<input type="text" name="t2" />
</label></p>
<input type="submit" title="Register" />
</form>
Search WWH ::




Custom Search