-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
53 lines (45 loc) · 1.65 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
<?php
session_start();
?>
<title>Login Form</title>
<link rel="stylesheet" href="style.css">
<div class="container">
<div class="msg_holder">
<?php
if (isset($_SESSION['msg'])) {
echo $_SESSION['msg'];
session_unset();
} else {
echo "Please login to continue!!";
}
?>
</div>
<div class="form_holder">
<form action="login_check.php" method="post">
<table align="center">
<tr>
<td>Email</td>
<td><input type="text" name="email" value="<?php if(isset($_COOKIE['rem_user'])){echo $_COOKIE['rem_user'];} ?>" required autocomplete="off"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="pwd" value="<?php if(isset($_COOKIE['rem_user'])){echo $_COOKIE['rem_pass'];} ?>" required autocomplete="off"></td>
</tr>
<tr>
<td align="right"><input type="checkbox" name="rem" <?php if(isset($_COOKIE['rem_user'])){echo "checked";} ?>></td>
<td>Remember Me</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="Login" name="login">
</td>
</tr>
<tr>
<td colspan="2" align="center">
New Member ? <a href="reg_form.php">Register Here</a>
</td>
</tr>
</table>
</form>
</div>
</div>