-
Notifications
You must be signed in to change notification settings - Fork 0
/
welcome.php
34 lines (31 loc) · 1017 Bytes
/
welcome.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
<?php
// Initialize the session
session_start();
// If session variable is not set it will redirect to login page
if(!isset($_SESSION['username']) || empty($_SESSION['username'])){
header("location: login.php");
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Welcome</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.css">
<style type="text/css">
body{ font: 14px sans-serif; text-align: center;background: #F5B7B1 ; }
</style>
</head>
<body>
<div class="page-header">
<h1>Hi, <b><?php echo htmlspecialchars($_SESSION['username']); ?></b>. Welcome to our site.</h1>
</div>
<p><a href="http://localhost/mysite/Application.php" class="btn btn-danger">Book an appointment</a></p>
<p><a href="#" class="btn btn-danger">Home</a></p>
<p><a href="logout.php" class="btn btn-danger">Sign Out of Your Account</a></p>
<?php
header("location: patienthome.html");
?>
</body>
</html>