-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
55 lines (40 loc) · 1.25 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
<?php
include_once ("class/Session.php");
include ("class/User.php");
?>
<?php include ("includes/header.php"); ?>
<?php include ("includes/navbar.php");
Session::loginPageSession("userEmail");
?>
<?php
$user = new User();
if(isset($_POST["login-btn"])){
$userLogin = $user->loginUser($_POST);
}
?>
<div class="container mt-4">
<form action="" method="POST" style="width: 650px;margin:0 auto;background-color: #530c54;padding: 68px;color: #fff;">
<h3>User Login</h3>
<?php
if(isset($userLogin)){
?>
<div class="alert alert-danger" role="alert">
<?php
echo $userLogin;
?>
</div>
<?php
}?>
<div class="form-group">
<label for="email">Email</label>
<input type="email" name="email" class="form-control" placeholder="Email Id" id="email">
<small class="text-danger"></small>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" class="form-control" placeholder="Password" id="password">
</div>
<button type="submit" name="login-btn" class="btn btn-primary">Login</button>
</form>
</div>
<?php include ("includes/footer.php");?>