-
Notifications
You must be signed in to change notification settings - Fork 0
/
first_survey.php
executable file
·171 lines (157 loc) · 6.1 KB
/
first_survey.php
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
171
<?php
$first_question = $_GET['first_q'];
echo "Your favourite subject is high school is ".$first_question.".";
echo <<<_END
<form method = "POST">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
</head>
<body>
<h1>A Short Survey!</h1>
</header>
<article id="mainContent">
<h1>Please answer all the questions.</h1>
<form method="post">
<h2>Q 1/5</h2>
<p>What were your favourite subject(s) in high school? <br>
(Check as many as you like.)</p>
<div class="column">
<p>
<label>
<input name="interests_" type="checkbox" id="interests_0" value="Mathematics" />
Mathematics</label>
</p>
<p>
<label>
<input name="interests_" type="checkbox" id="interests_1" value="Science"/ >
Science</label>
</p>
<p>
<label>
<input name="interests_" type="checkbox" id="interests_2" value="English" / >
English</label>
</p>
<p>
<label>
<input name="interests_" type="checkbox" id="interests_3" value="Geography" />
Geography</label>
</p>
<p>
<label>
<input name="interests_" type="checkbox" id="interests_4" value="Graphic Design" />
Graphic Design</label>
</p>
<p>
<label>
<input name="interests_" type="checkbox" class="interests" id="interests_5" value="Arts" />
Arts</label>
</p>
<p>
<label>
<input name="interests_" type="checkbox" class="interests" id="interests_6" value="Religious Eductaion" />
Religious Eductaion</label>
</p>
<p>
<label>
<input name="interests_" type="checkbox" class="interests" id="interests_7" value="Language">
Language</label>
</p>
<p>
<label>
<input name="interests_" type="checkbox" class="interests" id="interests_8" value="Photography" />
Photography</label>
</p>
<p>
<label>
<input name="interests_" type="checkbox" class="interests" id="interests_9" value="Textiles" />
Textiles</label>
</p>
<p>
<label>
<input name="interests_" type="checkbox" class="interests" id="interests_9" value="NOT STATED:(" />
NOT STATED:(</label>
</p>
</div>
</div>
<div>
<h2>Q 2/5</h2>
<p>Please type in the name of your favourite football team</p>
<p>
<input id="desiredTeam" type="text" placeholder="Manchester United" /></p>
</div>
</div>
<h2>Q 3/5</h2>
<p>How long have you been watching football for?</p>
<p>
<input type="radio" id="artistLength1" name="artistLength" value="Since I was a kid" />
<label>Since I was a kid.</label>
</p>
<p>
<input type="radio" id="artistLength2" name="artistLength" value="Since high school" />
<label>Since high school.</label>
</p>
<p>
<input type="radio" id="artistLength3" name="artistLength" value="Less than a year" />
<label>Less than a year.</label>
</p>
<p>
<input type="radio" id="artistLength4" name="artistLength" value="All my life" />
<label>All my life.</label>
</p>
<p>
<input type="radio" id="artistLength5" name="artistLength" value="I don't" />
<label>I don't.</label>
</p>
</div>
</div>
<h2>Q 4/5</h2>
<p>How many hours a day do you practise footbal?</p>
<p>
<input type="range" min="0" max="24" value="0" id="hoursPractice" onchange="printValue('hoursPractice','hoursPracticeValue')" />
</p>
<p>
<input type="text" id="hoursPracticeValue" placeholder="Move slider from 0 to 24 hours" />
</p>
</div>
</div>
<h2>Q 5/5</h2>
<p>Who have you shown your art too?<br>
(Check all that apply.)</p>
<p>
<label>
<input class="shared" type="checkbox" name="viewers_" value="Family" id="viewers_0" />
Family</label>
</p>
<p>
<label>
<input class="shared" type="checkbox" name="viewers_" value="Friends" id="viewers_0" />
Friends</label>
</p>
<p>
<label>
<input class="shared" type="checkbox" name="viewers_" value="Teachers and classmates" id="viewers_0" />
Teachers and classmates</label>
</p>
<p>
<label>
<input class="shared" type="checkbox" name="viewers_" value="Public showing" id="viewers_0" />
The public in a showing</label>
</p>
<p>
<label>
<input class="shared" type="checkbox" name="viewers_" value="No one" id="viewers_0" />
No one</label>
</p>
</div>
</div>
<p>Please review your responses below and click the related Change button to make any updates. When you're satisfied with your responses, click Submit.</p>
<p class="show-buttons">
<input type="submit" name="surveryResponse" value="Submit" />
</p>
</form>
<br>
</form>
_END;
if (isset($_POST['surveryResponse'])) {
echo "Thank you for your time. Your response has been submitted.";
}
?>