diff options
Diffstat (limited to 'login.php')
| -rw-r--r-- | login.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/login.php b/login.php new file mode 100644 index 0000000..5ac4afe --- /dev/null +++ b/login.php @@ -0,0 +1,29 @@ +<?php +if ($_POST['username'] == "stagiaire" && $_POST['password'] == "password123"){ + $msg="Bien joué, Boloss, ton flag est 'ici'"; +} +else { + $msg="Erreur, Boloss !"; +} +?> +<!DOCTYPE html> +<html lang="fr"> + +<head> +<meta charset="utf-8" /> +<title>Login</title> +<meta name="generator" content="Geany 1.38" /> +</head> + +<body> + <h1>Login</h1> + <form method="post"> + <input type="text" name="username"><br> + <input type="password" name="password"><br> + <input type="submit"> + </form> + <br> + <div><?php if (isset($_POST['username'])){ echo $msg; } ?></div> +</body> + +</html> |
