-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
51 lines (51 loc) · 2.23 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
<?php
session_start();
if (isset($_SESSION['User'])){
header("location:myorders.php");
}
$title = "Login";
include "includes/header.php";
?>
<header class="reg_header">
<div class="container pt-3 text-center">
<div class="text">
<h2>Login</h2>
<p><a href="index.php">Home</a> / Login</p>
</div>
</div>
</header>
<section class="reg_body my-5">
<div class="container py-3">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- index_page -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-4574787651313621"
data-ad-slot="6201557053"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class="container">
<div class="col-lg-8 col-md-10 py-5 col_border m-auto">
<div class="col-md-10 m-auto">
<h3 class="text-center mb-4">
Login From Here
</h3>
<?php if (isset($_SESSION['alert'])){ ?><div class="alert alert-warning"><?= $_SESSION['alert'] ?></div> <?php unset($_SESSION['alert']); } ?>
<form action="php/controller.php" method="post">
<label>Email Address *</label>
<input type="text" name="email" class="form-control" placeholder="Enter address" />
<label>Password *</label>
<input type="password" name="password" class="form-control" placeholder="Enter password" />
<button class="btn_button btn-block" name="login_user">Login</button>
<p class="py-4 text-center">Or</p>
<button onclick="window.location.href='register.php'" type="button" class="btn_button btn-block bg-dark text-light">register now</button>
</form>
</div>
</div>
</div>
</section>
<?php include "includes/footer.php"; ?>