-
Notifications
You must be signed in to change notification settings - Fork 1
/
addquestion.php
74 lines (69 loc) · 1.88 KB
/
addquestion.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
<?php
session_start();
require_once("php/functions.php");
load();
if(!is_user($id,$username,$hashed)) redirect_to('login.php?url=addquestion.php');
?>
<!DOCTYPE html>
<hmtl>
<head>
<link href = "css/addquestion.css"
type = "text/css"
rel = "stylesheet"
>
<meta charset="utf-8"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src = 'js/javascript.js'> </script>
<title></title>
</head>
<body>
<div class = "main">
<br><br><br><br>
<a classs="Button" href = "profile.php"> Back </a>
<div >
<div class = "Title">
<a> Add Question </a>
</div>
<div class = "sheyvana">
<a> Question </a><br><input id = "question" type="text" />
<a class="errors"></a>
<br><br>
<td><a> Subject </a>
<select name="sel_subject" id = "subject">
<option value="0"> Select Subject </option>
<option value="1"> Pol 106 </option>
<option value="2"> Math </option>
<option value="3"> Chemistry </option>
</select>
</td>
<a class="errors"></a>
<br><br>
<div class = "choices">
<a> Correct choice </a><br><textarea id = "choice1" type = "text"></textarea>
<a class="errors"></a>
</div>
<div class = "choices">
<a> Incorrect choice </a><br><textarea id = "choice2" type = "text"></textarea>
<a class="errors"></a>
</div>
<div class = "choices">
<a> Incorrect choice </a><br><textarea id = "choice3" type = "text"></textarea>
<a class="errors"></a>
</div>
<div class = "choices">
<a> Incorrect choice </a><br><textarea id = "choice4" type = "text"></textarea>
<a class="errors"></a>
</div>
<div class = "Button" onclick="add_choices()">
<a> Add more choices </a>
</div>
</div>
<br> <br>
<div class = "Button" onclick="add_question()">
<a> Submit </a>
</div>
</div>
<br>
</div>
</body>
</hmtl>