-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.php
28 lines (25 loc) · 1.03 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
<?php include_once('inc/header.php'); ?>
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4">
<div class="jumbotron">
<h4>Login</h4>
<form action="login.php" method="POST">
<div class="form-group">
<label>Username:</label>
<input type="email" name="user_email" class="form-control" value="<?php if(isset($_COOKIE["user_email"])) { echo $_COOKIE["user_email"]; } ?>" required>
</div>
<div class="form-group">
<label>Password:</label>
<input type="password" name="user_password" class="form-control" value="<?php if(isset($_COOKIE["user_password"])) { echo $_COOKIE["user_password"]; } ?>" required>
</div>
<div class="form-group">
<label for="login-remember"><input type="checkbox" id="remember" name="remember" <?php if(isset($_COOKIE["user_email"])) { ?> checked <?php } ?>>Remember Me</label>
</div>
<input type="submit" name="login" value="Login" class="btn btn-primary">
</form>
</div>
</div>
<div class="col-md-4"></div>
</div>
<?php include_once('inc/footer.php'); ?>