-
Notifications
You must be signed in to change notification settings - Fork 1
/
add-question.php
34 lines (33 loc) · 1.53 KB
/
add-question.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
<?php
include('faculty-session.php');
?>
<html>
<head>
<title>Add Question - WebAES for Faculties</title>
<meta charset='UTF-8'>
<link rel='stylesheet' type='text/css' href='style.css'>
<link href='https://fonts.googleapis.com/css?family=Open Sans' rel='stylesheet'>
</head>
<body>
<header class='header'>
<h2><a class='header-link' href='faculty-home.php'>WebAES for Faculties</a></h2>
</header>
<div class='welcome'>
<h4 class='align-right'>Welcome, <?php echo $login_session; ?>   <a href='logout.php'>Log Out</a>   <a href='faculty-home.php'>Home</a></h4>
</div>
<div class='main-content'>
<div class='question-form'>
<h2 class='align-center'>Add new question</h2>
<hr>
<form action='insert-question.php' method='POST'>
<label for='prompt'>Question prompt</label>
<textarea placeholder='Enter question here...' id='prompt' name='prompt' rows='3' cols='100' autocomplete='off' required></textarea>
<br>
<label for='exp_ans'>Expected answer</label>
<textarea placeholder='Enter expected answer here...' id='exp_ans' name='exp_ans' rows='7' cols='100' autocomplete='off' required></textarea>
<p class='align-center'><button type='submit'>Add</button></p>
</form>
</div>
</div>
</body>
</html>