-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstudent.php
33 lines (27 loc) · 1.17 KB
/
student.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
<?php
include ("header.php");
session_start();
$user = $_GET['un'];
$stdid=$_GET['sid'];
$hostelid=$_GET['hid'];
$user1=$_SESSION['username'];
if ($user1 == true)
{
}
else{
header("location:studentlogin.php");
}
?>
<main>
<div class=""> <h1> Welcome <?php echo "$user";?></h1></div>
<ul>
<li class="plum"><a href="plumbing.php?un=<?php echo "$user";?>&&sid=<?php echo "$stdid";?>&&hid=<?php echo "$hostelid";?>">plumbing</a></li>
<li class="clean"><a href="cleaning.php?un=<?php echo "$user";?>&&sid=<?php echo "$stdid";?>&&hid=<?php echo "$hostelid";?>">cleaning</a></li>
<li class="elec"><a href="electrical.php?un=<?php echo "$user";?>&&sid=<?php echo "$stdid";?>&&hid=<?php echo "$hostelid";?>">electrical</a></li>
<li class="complaint"><a href="complaint.php?un=<?php echo "$user";?>&&sid=<?php echo "$stdid";?>&&hid=<?php echo "$hostelid";?>">complaints</a></li>
<li class="complaint"><a href="profile.php?un=<?php echo "$user";?>&&sid=<?php echo "$stdid";?>&&hid=<?php echo "$hostelid";?>">complaints</a></li>
</ul>
</main>
<?php
include ("footer.php");
?>