-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
41 lines (33 loc) · 950 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
<?php
include_once 'header.php';
?>
<section class="signup-form">
<h2>Log In</h2>
<div class="signup-form-form">
<form action="includes/login.inc.php" method="post">
<link rel="stylesheet" href="css/stylesheet.css">
<input type="text" name="uid" placeholder="Username/Email...">
<input type="password" name="pwd" placeholder="Password...">
<button type="submit" name="submit">Log In</button>
</form>
</div>
</section>
<?php
if(isset($_GET["error"])){
if($_GET["error"] == "wronglogin"){
echo "<p>incorrect login information!</p>";
}
else if($_GET["error"] == "emptylogin"){
echo "<p>Fill all Fields!</p>";
}
else if($_GET["error"] == "stmtbrehfailed"){
echo "<p>oops!</p>";
}
else if($_GET["error"] == "toomanyattempts"){
echo "<p>Too many attempts, wait 5 minutes to retry!</p>";
}
}
?>
<?php
include_once 'footer.php';
?>