-
Notifications
You must be signed in to change notification settings - Fork 8
/
exam.php
56 lines (54 loc) · 1.62 KB
/
exam.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
<?php
/**
* @System HP-pc Rax
* @author Rakshit shah <Rakshitshah1994@gmail.com>
* @copyright 2015-2017 |Rakshit shah
* @license http://rakshit.in/license/license.php | PHP License 3.0
* @version 1.1
* @since File available since Release 1.0.0
*/
include("conection.php");
$result1 = mysql_query("SELECT * FROM subject");
$result = mysql_query("SELECT * FROM course");
?>
<form id="form1" name="form1" method="post" action="examinsert.php">
<p>
<label for="course">Course</label>
<label for="select"></label>
<select name="course" >
<option value="">Course Details</option>
<?php
while($row1 = mysql_fetch_array($result))
{
echo "<option value='$row1[courseid]'>$row1[coursekey]</option>";
}
?>
</select>
</p>
<p>
<label for="semester">Semester</label>
<select name="semester" id="semester">
<option value="1">First Semester</option>
<option value="2">Second Semester</option>
<option value="3">Third Semester</option>
<option value="4">Fourth Semester</option>
<option value="5">Fifth Semester</option>
<option value="6">Sixth Semester</option>
</select>
</p>
<p>
<label for="textfield2">Internal type</label>
<select name="internal" id="internal">
<option value="1">First Internal</option>
<option value="2">Second Internal</option>
</select>
</p>
<p>Max marks
<label for="textfield3"></label>
<input type="text" name="marks" />
</p>
<p>
<input type="submit" name="button" id="button" value="Submit" />
<input type="submit" name="button2" id="button2" value="Reset" />
</p>
</form>