-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.php
More file actions
43 lines (37 loc) · 841 Bytes
/
home.php
File metadata and controls
43 lines (37 loc) · 841 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
session_start();
if (!isset($_SESSION['student'])) {
header("Location: login.php");
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Welcome - University</title>
<style>
body {
font-family: Arial;
text-align: center;
background: #f8f9fa;
margin-top: 100px;
}
a {
text-decoration: none;
color: white;
background: #003366;
padding: 10px 15px;
border-radius: 5px;
}
a:hover {
background: #002244;
}
</style>
</head>
<body>
<h2>Welcome, <?php echo $_SESSION['student']; ?> 🎓</h2>
<p>You have successfully logged in to the University Portal.</p>
<a href="logout.php">Logout</a>
</body>
</html>