-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
61 lines (58 loc) · 1.55 KB
/
index.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
session_start();
if(isset($_SESSION['user_id'])) {
header('Location: dashboard.php');
exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<title>RD</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<style>
body {
background-image: url('img20190617150816023861507.jpg');
background-size: cover;
background-repeat: no-repeat;
background-position: top center;
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
}
h1 {
text-align: center;
margin-top: 50px;
}
form {
text-align: center;
margin-top: 30px;
}
input[type=submit] {
background-color: #007bff;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 18px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #0069d9;
}
p {
color: red;
text-align: center;
}
</style>
</head>
<body>
<h1>Railway Department</h1>
<?php if(isset($_SESSION['error'])) { ?>
<p><?php echo $_SESSION['error']; ?></p>
<?php unset($_SESSION['error']); ?>
<?php } ?>
<form action="login.php" method="POST">
<input type="submit" value="Click here for Login or Registration">
</form>
</body>
</html>