Bonsoir je veux afficher un message d'erreur ou validation mais lorsque j'insere un faux login sa renvoie sur une page vierge
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 /* Login */ if (isset($_POST["log"]) && isset($_POST["pass"])) { $acte = $_POST["login"]; switch ($acte) { case 'back': $res = testLoginAdmine($_POST["log"], $_POST["pass"]); if ($res == 1) { startUserAdmine($_POST["log"], $_POST["pass"]); header("Location: ../back.php?page=list-admin"); } else { header("Location: ../back.php?error=auth"); } break; default: header("Location: ../index.php?error=auth"); } }





Répondre avec citation




Partager