-
Notifications
You must be signed in to change notification settings - Fork 1
/
welcome.php
40 lines (30 loc) · 1009 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
35
36
37
<html>
<head>
<title>LOGIN PAGE</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/welcome.css">
</head>
<body>
<?php
session_start();
if (empty($_SESSION["username"])) {
header('Location: login.php');
} else {
}
?>
<h1>Welcome <?php echo $_SESSION["fname"] . " " . $_SESSION["lname"]; ?> </h1>
<?php
if (isset($_POST['Submitlast'])) {
session_destroy();
header('Location: session.php');
}
?>
<div class="out">
<form action="welcome.php" method="post" >
<div class="form-group has-success has-feedback">
<input type="submit" name="Submitlast" class="form-control" id="inputSuccess2" aria-describedby="inputSuccess2Status" value="Log Out" />
</div>
</div>
</body>
<form>
</html>