Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

Processing Forms 671

24


<p>Please fill out the form below to register for our site. Fields
with bold labels are required.</p>





<p><label for="age"><b>Age:</label></b><br>
<input id="age"></p>

Toys:





p>





Output ▼


As you can see, the form has three fields: one for the user’s name, one for the user’s
age, and one that enables the user to select some toys he owns. All three of the fields are
required. The form submits to itself, using the POST method. I’ve specified the action for


FIGURE 24.1
A simple user reg-
istration form.



Free download pdf