-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
44 lines (33 loc) · 1.1 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
<?php include "db.php"; ?>
<?php include "header.php"; ?>
<?php
if (isset($_POST['login'])) {
$username = $_POST['username'];
$password = $_POST['password'];
}
?>
<section class="login-section">
<div class="container">
<div class="col-md-4 offset-md-4">
<div class="login-box">
<h1>Admin Login</h1>
<form action="" method="POST">
<!-- Username field -->
<div class="form-group">
<label>Username</label>
<input type="text" name="username" class="form-control">
</div>
<!-- Password field -->
<div class="form-group">
<label>Password</label>
<input type="Password" name="password" class="form-control">
</div>
<div class="form-group">
<input type="submit" name="login" class="btn btn-primary">
</div>
</form>
</div>
</div>
</div>
</section>
<?php include "footer.php"; ?>