-
Notifications
You must be signed in to change notification settings - Fork 0
/
adminlogin.php
97 lines (78 loc) · 3.26 KB
/
adminlogin.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
session_start();
include('config.php');
if (isset($_POST['submit'])) {
$sql = "SELECT * FROM admin_table WHERE email='$_POST[email]' AND password='$_POST[password]'";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) === 1) {
session_start();
$_SESSION['adminlogin']=$_POST['email'];
header("location: adminhome.php");
} else {
echo "Email or password do not match";
}
}
?>
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>Login to MMA Auto</title>
<!-- Meta tag Keywords -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<meta name="keywords"
content="Login Form" />
<!-- //Meta tag Keywords -->
<link href="//fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet">
<!--/Style-CSS -->
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<link rel="stylesheet" href="css/style2.css" type="text/css" media="all" />
<!--//Style-CSS -->
<script src="https://kit.fontawesome.com/af562a2a63.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- form section start -->
<section class="w3l-mockup-form">
<div class="container">
<!-- /form -->
<div class="workinghny-form-grid">
<div class="main-mockup">
<!-- <div class="alert-close">
<span class="fa fa-close"></span>
</div> -->
<div class="w3l_form align-self">
<div class="left_grid_info">
<img src="art/carlogin.png" alt="">
</div>
</div>
<div class="content-wthree">
<h2>Admin Login </h2>
<p>Login to continue</p>
<form action="" method="post">
<input type="email" class="email" name="email" placeholder="Enter Your Email" required>
<input type="password" class="password" name="password" placeholder="Enter Your Password" style="margin-bottom: 2px;" required>
<p><a href="forgot-password.php" style="margin-bottom: 15px; display: block; text-align: right;">Forgot Password?</a></p>
<button name="submit" name="submit" class="btn" type="submit">Login</button>
</form>
<div class="social-icons">
<p>Are you a user? <a href="index.php"><b>Login</b></a>.</p>
</div>
</div>
</div>
</div>
<!-- //form -->
</div>
</section>
<!-- //form section start -->
<!-- <script src="js/jquery.min.js"></script>
<script>
$(document).ready(function (c) {
$('.alert-close').on('click', function (c) {
$('.main-mockup').fadeOut('slow', function (c) {
$('.main-mockup').remove();
});
});
});
</script> -->
</body>
</html>