-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoginHTML.php
32 lines (23 loc) · 917 Bytes
/
LoginHTML.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
<html>
<body>
<form id = "loginform" action = "PHP/Login.php" method = "post">
<div>
<div class = "row">
<div class="form-group">
<label for="text" style= "font-size: 25px;">Username:</label>
<input type="text" name = "username" class="form-control text-center" required id="username" >
</div>
<div class="form-group">
<label for="pwd" style= "font-size: 25px;">Password:</label>
<input type="password" name = "password" class="form-control text-center" id="password" required>
</div>
<?php session_start();
if(isset($_SESSION['failed'])) echo 'Username or Password is incorect';
session_destroy();
?>
<button type="submit" name = "submit" id = "login" style = "width: 100%;margin-top:5px;font-size:20px;" class="btn btn-primary">Log In</button>
</div>
</div>
</form>
</body>
</html>