-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
44 lines (40 loc) · 986 Bytes
/
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
<?php
include 'inc/header.php';
include 'lib/User.php';
Session::checkLogin();
?>
<?php
$user = new User();
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['login'])) {
$usrLogin = $user->userLogin($_POST);
}
?>
<div class="panel panel-default">
<div class="panel-heading">
<h2>User Login</h2>
</div>
<div class="panel-body">
<div style="max-width:600px; margin: 0 auto">
<?php
if (isset($usrLogin)) {
echo $usrLogin;
}
?>
<form action="" method="POST">
<div class="form-group">
<label for="email">Email Address</label>
<input type="text" id="email" name="email" class="form-control" >
</div>
<div class="form-group">
<label for="password">Password </label>
<input type="password" id="password" name="password" class="form-control" >
</div>
<button type="submit" name="login"
class="btn btn-success">Login</button>
</form>
</div>
</div>
</div>
<?php
include 'inc/footer.php';
?>