-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
65 lines (51 loc) · 2.26 KB
/
login.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
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LOGIN</title>
<!-- bootstrap 5 CDN-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<!-- bootstrap 5 Js bundle CDN-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
</head>
<body>
<div class="d-flex justify-content-center
align-items-center"
style="min-height: 100vh;">
<form class="p-5 rounded shadow"
style="max-width: 30rem; width: 100%"
method="POST"
action="php/auth.php">
<h1 class="text-center display-4 pb-5">LOGIN</h1>
<?php if (isset($_GET['error'])) { ?>
<div class="alert alert-danger" role="alert">
<?=htmlspecialchars($_GET['error']); ?>
</div>
<?php } ?>
<div class="mb-3">
<label for="exampleInputEmail1"
class="form-label">Email address</label>
<input type="email"
class="form-control"
name="email"
id="exampleInputEmail1"
aria-describedby="emailHelp">
</div>
<div class="mb-3">
<label for="exampleInputPassword1"
class="form-label">
Password</label>
<input type="password" class="form-control"
name="password"
id="exampleInputPassword1">
</div>
<button type="submit"
class="btn btn-primary">
Login</button>
<a href="index.php">Store</a>
</form>
</div>
</body>
</html>