ptg16476052
530 LESSON 19: Using JavaScript in Your Pages
<h1>Registration Form</h1>
<p>Please fill out the form below to register for our site. Fields
with bold labels are required.</p>
<form action="/register" method="post" enctype="multipart/form-data"
id="registrationForm">
<div class="required">
<label class="field" for="name">Name</label>
<input name="name" type="text" />
</div>
<div class="required">
<label class="field">Gender</label>
<label><input type="radio" name="gender" value="male" /> male</label>
<label><input type="radio" name="gender" value="female" /> female</label>
</div>
<div class="required">
<label class="field">Operating System</label>
<select name="os">
<option value="windows">Windows</option>
<option value="macos">Mac OS</option>
<option value="linux">Linux</option>
<option value="other">Other ...</option>
</select>
</div>
<div>
<label class="field">Toys</label>
<label><input type="checkbox" name="toy" value="digicam" /> Digital Camera
</label>
<label><input type="checkbox" name="toy" value="mp3" /> MP3 Player</label>
<label><input type="checkbox" name="toy" value="wlan" /> Wireless LAN</label>
</div>
<div>
<label class="field">Portrait</label>
<input type="file" name="portrait" />
</div>
<div>
<label class="field">Mini Biography</label>
<textarea name="bio" rows="6" cols="40"></textarea>
</div>
<div class="submit">
<input type="submit" value="register" />
</div>
</form>
▼
▼