-
Notifications
You must be signed in to change notification settings - Fork 0
/
surveyform.html
170 lines (145 loc) · 6.85 KB
/
surveyform.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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A survey of Truth Trill's Music">
<script src="surveyform.js" async></script>
<link rel="stylesheet" href="surveyform.css">
<title>Survey Form</title>
</head>
<body>
<header>
<h1 id="title">
Truth Trill Music Survey Form
</h1>
<p id="description">
Thank you for taking the time to help us improve the music.
</p>
</header>
<section>
<!-- <form action="surveyresults.html" method="GET" enctype="multipart/form-data" id="survey-form">
-->
<form action="surveyresults.html" method="POST" enctype="multipart/form-data" id="survey-form">
<section class="left">
<div>
<label for="name" id="name-label">Name:
<input type="text" name="name" id="name" minlength="7" placeholder="First and Last Name" required>
</label>
</div>
<div>
<label for="password" id="password-label">Pass:
<input type="password" name="password" id="password" minlength="7" placeholder="P@55w0rd!" required>
</label>
</div>
<div>
<label for="email" id="email-label">E-Mail:
<input type="email" name="email" id="email" minlength="7" placeholder="[email protected]" required>
</label>
</div>
<div>
<label for="age" id="age-label">Age:
<input type="number" name="age" id="age" minlength="2" maxlength="3" min="9" max="120" placeholder="33" step="1">
</label>
</div>
<div>
<label for="date" id="date-label">Birthdate:
<input type="date" name="date" id="date" min="1940-10-17">
</label>
</div>
<div>
<label for="number" id="number-label">Phone Number:
<input type="number" name="number" id="number" min="1000000000" max="99999999999" minlength="10" maxlength="11" placeholder="9042217548">
</label>
</div>
<div>
<label for="cell" id="cell-label">Cell Number:
<input type="tel" name="cell" id="cell" min="1000000000" max="99999999999" minlength="10" maxlength="11" placeholder="9040195684">
</label>
</div>
<div>
<label for="genre">Favorite Genre: </label>
<select name="genre" id="genre">
<option value="Rap">Rap</option>
<option label="Hip-Hop/R&B" value="Hip-Hop"></option>
<option label="Instrumental" value="Instrumentals"></option>
<option label="Freestyle" value="Freestyle"></option>
</select>
</div>
<div>
<label for="dropdown" id="dropdown-label">Select Favorite Song: </label>
<select name="dropdown" id="dropdown" multiple>
<option value="No song selected">[Select A Song]</option>
<option value="staywoke">Stay Woke</option>
<option value="vibe">Vibe with Me</option>
<option value="getback">Get Back</option>
<option value="shadows">Shadows</option>
</select>
</div>
<div>
<textarea name="text" id="text" minlength="20" maxlength="1000" placeholder="Comments or suggestions?"></textarea>
</div>
</section>
<section class="right">
<div class="checkboxes">
<h3 style="padding:0;margin: 0 0 1% 0;">What type of song should be next?: </h3>
<div>
<label for="rap">Rap</label>
<input value="rap" type="checkbox" name="checkbox" id="rap">
</div>
<div>
<label for="hip-hop">Hip-Hop <br>and/or R&B</label>
<input value="hip-hop" type="checkbox" name="checkbox" id="hip-hop">
</div>
<div>
<label for="beat">Beat</label>
<input value="beats" type="checkbox" name="checkbox" id="beat">
</div>
<div>
<label for="freestyle">Freestyle</label>
<input value="freestyle" type="checkbox" name="checkbox" id="freestyle">
</div>
</div>
<div class="radio">
<h3 style="padding:0;margin: 2% 0 0 0;">Gender: </h3>
<div>
<label for="male ">Male</label>
<input type="radio" name="gender" id="male" value="male">
</div>
<div>
<label for="female">Female</label>
<input type="radio" name="gender" id="female" value="female">
</div>
<div>
<label for="changeling">Changling</label>
<input type="radio" name="gender" id="changling" value="changling">
</div>
</div>
<div class="file">
<label for="file"><h4 style="padding:0;margin: 2% 0 0 0;">Attachment: </h4></label>
<input type="file" id="file" name="file"> </div>
<div class="url">
<label for="url"><h4 style="padding:0;margin: 2% 0 0 0;">URL: </h4></label>
<input type="url" name="url" id="url" placeholder="yourwebsite.com">
</div>
<div class="color">
<label for="color">Favorite Color: </label>
<input type="color" name="color" id="color">
</div>
<div class="hidden">
<input type="hidden" name="hidden" value="NINJA!" id="hidden" label="hidden">
</div>
</section>
</form>
</section>
<!-- I stumbled on another way to make a Submit button lol! -->
<!-- <input type="submit " name="button " value="Submit " /> -->
<section class="submit">
<button form="survey-form" type="reset" id="reset">Reset</button>
<button form="survey-form" type="submit" id="submit" name="submit">Submit</button>
</section>
<!-- FreeCodeCamp's code tester! -->
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js ">
</script>
</body>
</html>