-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomewithselect.php
292 lines (286 loc) · 13.6 KB
/
homewithselect.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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- css -->
<link rel="stylesheet" href="bootstrap/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="tes.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- script -->
<script src="tools/js/jquery.min.js"></script>
<script src="bootstrap/bootstrap.min.js"></script>
<!-- <script src="tools/js/angular.min.js"></script> -->
<title>MyPersonality - Personality test</title>
</head>
<body>
<?php
include("konekmysqli.php");
$sql = "SELECT the_question FROM question";
if ($result = mysqli_query($db, $sql)){
while ($row = mysqli_fetch_row($result))
{
printf ("%s(%s)\n",$row[0],$row[1]);
}
echo "<span>".mysqli_free_result($result)."</span>";
}
?>
<div class="topnav" id="myTopnav">
<p class="logo">MyPersonality</p>
<a href="#">ABOUT</a>
<a href="#">REVIEW</a>
<a href="personalitytypes.php">PERSONALITY TYPE</a>
<a href="#" class="btn btn-info">HOME</a>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i class="fa fa-bars"></i>
</a>
</div>
<div class="therules">
<div class="titletypes">
<center><p><h2>ATTENTION</h2></p></center>
</div>
<div class="row rules">
<div class="col-md-3 col-xs-12">
<div class="ruleimg">
<img title="timer" src="img/timer.png">
</div>
<div class="ruletext"><p>Answer the questions in 15 minutes</p></div>
</div>
<div class="col-md-3 col-xs-12">
<div class="ruleimg">
<img title="timer" src="img/honest-icon.png">
</div>
<div class="ruletext"><p>Please answer honestly, even when you do not like the answer.</p></div>
</div>
<div class="col-md-3 col-xs-12">
<div class="ruleimg">
<img title="timer" src="img/fulfill-icon.png">
</div>
<div class="ruletext"><p>and do not left any questions with no answer</p></div>
</div>
</div>
<hr>
<div class="thequestion">
<form action="namadanemail.php" method="POST">
<center><label style="font-family: Good Feeling Sans Demo;">Name: </label><input type="text" name="nama"/></center>
<div class="Q">
<p class="Q1">You find it difficult to introduce yourself to other people.</p>
<p class="agree">Agree</p>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q1" checked value="1"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q1" checked value="2"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q1" checked value="3"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q1" checked value="4"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q1" checked value="5"/>
</label>
<p class="agree">Disagree</p>
</div>
<div class="Q">
<p class="Q2">You often get so lost in thoughts that you ignore or forget your surroundings.</p>
<p class="agree">Agree</p>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q2" checked value="1"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q2" checked value="2"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q2" checked value="3"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q2" checked value="4"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q2" checked value="5"/>
</label>
<p class="agree">Disagree</p>
</div>
<div class="Q">
<p class="Q3">You try to respond to your e-mails as soon as possible and cannot stand a messy inbox.</p>
<p class="agree">Agree</p>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q3" checked value="1"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q3" checked value="2"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q3" checked value="3"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q3" checked value="4"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q3" checked value="5"/>
</label>
<p class="agree">Disagree</p>
</div>
<div class="Q">
<p class="Q4">You find it easy to stay relaxed even when there is some pressure.</p>
<p class="agree">Agree</p>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q4" checked value="1"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q4" checked value="2"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q4" checked value="3"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q4" checked value="4"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q4" checked value="5"/>
</label>
<p class="agree">Disagree</p>
</div>
<div class="Q">
<p class="Q5">You do not usually initiate conversations.</p>
<p class="agree">Agree</p>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q5" checked value="1"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q5" checked value="2"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q5" checked value="3"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q5" checked value="4"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q5" checked value="5"/>
</label>
<p class="agree">Disagree</p>
</div>
<div class="Q">
<p class="Q6">You rarely do something just out of sheer curiosity.</p>
<p class="agree">Agree</p>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q6" checked value="1"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q6" checked value="2"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q6" checked value="3"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q6" checked value="4"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q6" checked value="5"/>
</label>
<p class="agree">Disagree</p>
</div>
<div class="Q">
<p class="Q7">You feel superior to other people.</p>
<p class="agree">Agree</p>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q7" checked value="1"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q7" checked value="2"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q7" checked value="3"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q7" checked value="4"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q7" checked value="5"/>
</label>
<p class="agree">Disagree</p>
</div>
<div class="Q">
<p class="Q8">Being organized is more important to you than being adaptable.</p>
<p class="agree">Agree</p>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q8" checked value="1"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q8" checked value="2"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q8" checked value="3"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q8" checked value="4"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q8" checked value="5"/>
</label>
<p class="agree">Disagree</p>
</div>
<div class="Q">
<p class="Q9">you are usually highly motivated and energetic.</p>
<p class="agree">Agree</p>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q9" checked value="1"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q9" checked value="2"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q9" checked value="3"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q9" checked value="4"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q9" checked value="5"/>
</label>
<p class="agree">Disagree</p>
</div>
<div class="Q">
<p class="Q10">winning debate matters less to you than making sure no one gets upset.</p>
<p class="agree">Agree</p>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q10" checked value="1"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q10" checked value="2"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q10" checked value="3"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q10" checked value="4"/>
</label>
<label class="radio-inline">
<input type="radio" class="form-check-label" name="q10" checked value="5"/>
</label>
<p class="agree">Disagree</p>
</div>
<input type="submit" name="submit" value="SEE THE RESULT"/>
</div>
</form>
</div>
<div class="footer">
<div>
<div class="footer-icons col-md-6 col-xs-10">
<a href="#"><img src="icon/002-twitter.png">mypersonality</a>
<a href="#"><img src="icon/001-facebook.png">MyPersonality ID</a>
<a href="#"><img src="icon/envelope.png">[email protected]</a>
</div>
<div class="copyright">
<center><p>Copyright © 2018 MyPersonality Personality Online Test Inc. All right reserved</p></center></p>
</div>
</div>
</div>
</body>
<script>
</script>
</html>