-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
48 lines (43 loc) · 1.77 KB
/
index.php
File metadata and controls
48 lines (43 loc) · 1.77 KB
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
<?php include('controllers/login.php'); ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.4.1/css/simple-line-icons.min.css" rel="stylesheet">
<link rel="stylesheet" href="./css/style.css">
<title>PHP: User Authentication System - Login</title>
<!-- jQuery + Bootstrap JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="registration-form">
<form action="" method="post">
<div class="form-icon">
<span><i class="icon icon-login"></i></span>
</div>
<div class="form-group">
<input type="email" class="form-control item" name="email" id="email" placeholder="Email">
<?php echo $accountNotExistErr; ?>
<?php echo $email_empty_err; ?>
</div>
<div class="form-group">
<input type="password" class="form-control item" name="password" id="password" placeholder="Password">
<?php echo $wrongPwdErr; ?>
<?php echo $pass_empty_err; ?>
</div>
<div class="form-group">
<button type="submit" class="btn btn-block submit" name="login" id="login">Login</button>
</div>
</form>
<div class="alternate">
<h5>Don't have an account?</h5>
<div class="option">
<a href="signup.php">Create Account</a>
</div>
</div>
</div>
</body>
</html>