diff --git a/pages/login.php b/pages/login.php index bbbe681..704515c 100644 --- a/pages/login.php +++ b/pages/login.php @@ -3,7 +3,7 @@ $HTML->setHTMLTitle("Login"); $HTML->importHTML("login.html"); - if(isset($_POST['login'])) + if($_SERVER['REQUEST_METHOD'] == 'POST') { include_once 'app/FormValidator.php'; $validator = new FormValidator(array(