diff --git a/web/index.php b/web/index.php index f45065b..8af6b51 100644 --- a/web/index.php +++ b/web/index.php @@ -1,10 +1,12 @@  '.$msg; } -if ($_POST['button'] == "CONNEXION"){ +if (isset ($_POST['button'])){ + if (($_POST['button'] == "CONNEXION")){ $login = $_POST['flogin']; $password = md5($_POST['fpassword']); require("../config/connecter.php"); @@ -28,7 +30,7 @@ else{ $erreur=' Erreur d\'authentification'; } -} + } else{ session_start(); $_SESSION = array(); @@ -37,6 +39,7 @@ } session_destroy(); } +} ?> diff --git a/web/verification.php b/web/verification.php index e676578..dea0e22 100644 --- a/web/verification.php +++ b/web/verification.php @@ -1,5 +1,6 @@