-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
56 lines (50 loc) · 2.02 KB
/
header.php
File metadata and controls
56 lines (50 loc) · 2.02 KB
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
56
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title></title>
<link rel="stylesheet" type="text/css" href="header.css">
</head>
<body>
<header>
<a href="index.php" class="brand">
<img src="wallet.png" alt="logo">
<div class="pig">
</div>
</a>
</header>
<div class="login-page">
<div class="form">
<form class="login-form" action="includes/login.inc.php" method="post">
<?php
if(isset($_GET['error'])){
if($_GET['error']=="emptyfields"){
echo'<p style="color:red;"> Fill in all fields!</p><br>';
}
else if($_GET['error']=="sqlerror"){
echo'<p style="color:red;">SQL ERROR!</p><br>';
}
else if($_GET['error']=="wrongpwd"){
echo'<p style="color:red;">Incorrect Password!</p><br>';
}
else if($_GET['error']=="nouser"){
echo'<p style="color:red;">Invalid username!</p><br>';
}
}
?>
<input type="text" name="mailuid" placeholder="Username/email">
<input type="password" name="pwd" placeholder="Password">
<button type="submit" name="login-submit">Login</button>
<p class="message">Not registered? <a href="signup.php">Create an account</a></p>
</form>
</div>
</div>
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="header.js"></script> -->
</body>
</html>