-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path3.php
75 lines (62 loc) · 1.59 KB
/
3.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
<?php
if(isset($_POST['stud_name'])) {
$link = mysqli_connect(
'localhost',
'root',
'',
'php_project'
);
if (!$link)
{
die('Connect Error (' . mysqli_connect_errno() . ') '
. mysqli_connect_error());
}
// @header("Location: 1.php"); wrong password
}else{
}
$subjects = array(
"choose a subject" => "choose a subject ",
"network" => "Network",
"OS" => "Operating System"
);
$instructors = array(
"instructor" => "choose an instructor",
"BigBoss" => "Ahmed Gnaidy",
"supervisor" => "Nuha Amer"
);
?>
<html>
<head>
<title>Choose Evaluation </title>
</head>
<body>
<table border="0">
<tr>
<td><label>Subject</label></td>
<td><select name="subj">
<?php
foreach ($subjects as $subj => $value)
echo"<option value='$subj'>$value</option>";
?>
</td>
</tr>
<tr>
<td><label>Instructor</label></td>
<td><select name="instructor">
<?php
foreach ($instructors as $instructor => $value)
echo"<option value='$instructor'>$value</option>";
?>
</td>
</tr>
</table>
<br>
<label>Evaluation deadline is :</label>
<table border="0">
<tr>
<td><input type="submit" value="InstructorEvaluation"/><td>
<td><input type="submit" value="CourseEvaluation"/><td/>
</tr>
</table>
</body>
</html>