-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpeople.php
More file actions
29 lines (28 loc) · 884 Bytes
/
Copy pathpeople.php
File metadata and controls
29 lines (28 loc) · 884 Bytes
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
<?php
$dept = $_GET['dept'] ?? 'cse';
switch ($dept) {
case 'cse':
$section = $_GET['section'] ?? 'fac';
header("Location: cse/$section.php?dept=$dept§ion=$section");
exit;
case 'ece':
$section = $_GET['section'] ?? 'fac';
header("Location: ece/$section.php?dept=$dept§ion=$section");
exit;
case 'eee':
$section = $_GET['section'] ?? 'fac';
header("Location: eee/$section.php?dept=$dept§ion=$section");
exit;
case 'ce':
$section = $_GET['section'] ?? 'fac';
header("Location: ce/$section.php?dept=$dept§ion=$section");
exit;
case 'me':
$section = $_GET['section'] ?? 'fac';
header("Location: me/$section.php?dept=$dept§ion=$section");
exit;
default:
echo "Please select a valid department.";
break;
}
?>