-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
38 lines (34 loc) · 1.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="assets/img/logo.png">
<title>Hello, Outfit!</title>
<link rel="stylesheet" href="assets/css/style-login.css">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="overlay"></div>
<form action="functions/login.php" method="post" class="box">
<div class="header">
<h4>Login Ke Akun Anda</h4>
</div>
<div class="login-area">
<input type="text" class="username" name="username" placeholder="Username / Email">
<input type="password" class="password" name="password" placeholder="Password">
<input type="submit" value="Login" class="submit" name="submit">
<a href="signup.php">Tidak punya akun?</a>
<?php
if (isset($_GET["error"])) {
if ($_GET["error"] == "emptyinput") {
echo "<p>Fill in all fields!</p>";
} else if ($_GET["error"] == "wronglogin") {
echo "<p>Incorrect login information!</p>";
}
}
?>
</div>
</form>
</body>
</html>