-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathindex.php
More file actions
81 lines (81 loc) · 3.39 KB
/
index.php
File metadata and controls
81 lines (81 loc) · 3.39 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<title>PHP Forms</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
</head>
<body>
<div class="container py-5 my-5">
<h1>HTML Forms — Get</h1>
<form action="results.php" method="post">
<div class="form-group">
<label for="nickname">Nickname</label>
<input type="text" class="form-control" id="first-name" aria-describedby="email-help" placeholder="Nickname" name="nickname">
<small id="nickname-help" class="form-text text-muted">Enter your nickname.</small>
</div>
<div class="form-group">
<label for="last-name">First and Last Name</label>
<input type="text" class="form-control" id="last-name" aria-describedby="first-and-last-name-help" placeholder="First and Last Name" name="first_and_last_name">
<small id="first_and_last-name-help" class="form-text text-muted">Enter your first and last name.</small>
</div>
<p class="lead mb-0">What is your favorite movie genre?</p>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="movies" id="horror" value="horror">
Horror
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="movies" id="comedy" value="comedy">
Comedy
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="movies" id="romantic" value="romantic">
Romantic
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="movies" id="science_fiction" value="science_fiction">
Science Fiction
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="movies" id="suspense" value="suspense">
Suspense
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="movies" id="indie" value="indie">
Indie
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="movies" id="chick_flick" value="chick_flick">
Chick Flick
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="movies" id="action" value="action">
Action
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="movies" id="none" value="none">
None of the above
</label>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</body>
</html>