forked from assembler-institute/php-server-environment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
31 lines (29 loc) · 920 Bytes
/
index.php
File metadata and controls
31 lines (29 loc) · 920 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<form class="login" action="validate.php" method="POST">
<label>
<input type="text" name="username" placeholder="Username">
</label>
<br>
<label>
<input type="password" name="password" placeholder="Password">
</label>
<?php
if(isset($_GET["error"]))
echo '<div class="warn">Incorrect username or password !</div>';
if(isset($_GET["zonaprivada"]))
echo '<div class="warn">Please log in !</div>'
?>
<br>
<button type="submit">Login</button>
</form>
</body>
</html>