-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsample-form.html
37 lines (32 loc) · 1.69 KB
/
sample-form.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<form action="process-form.php" method="post" accept-charset="utf-8">
<p>Your Name: <input type="text" name="required-your-name" value="Erik Reagan" id="fname" /></p>
<p>Email Address: <input type="text" name="required-your-email" value="erik@erikreagan.com" id="email" /><br/></p>
<p>Subject: <input type="text" name="required-subject" value="The Subject Is This" id="email" /><br/></p>
<p>Are you over 18?</p>
<p><input type="radio" name="are-you-over-18" value="Yes" id="yes" checked="checked" />Yes</p>
<p><input type="radio" name="are-you-over-18" value="No" id="no" />No<br/></p>
<p>Additional Comments:</p>
<p><textarea name="additional-comments" rows="8" cols="40">Just some more text.</textarea><br/><br/></p>
<p><input type="checkbox" id="Vehicle1" name="Vehicle[]" value="Bike" /> I have a bike</p>
<p><input type="checkbox" id="Vehicle2" name="Vehicle[]" value="Car" /> I have a car</p>
<p><input type="checkbox" id="Vehicle3" name="Vehicle[]" value="Airplane" /> I have an airplane:<br/></p>
<p>Favorite Types of Cars</p>
<p><select name="required-car[]" id="Car" multiple="multiple">
<option value ="didnotchoose" selected>Choose One</option>
<option value ="Volvo">Volvo</option>
<option value ="Saab">Saab</option>
<option value ="Opel">Opel</option>
<option value ="Audi">Audi</option>
</select></p>
<p><input type="submit" name="submit" value="Submit Results" /></p>
</form>
</body>
</html>