PDO Login

master
flejk 3 years ago
parent 120817a920
commit 4150b74666

@ -28,6 +28,9 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
// Check if password is empty // Check if password is empty
if(empty(trim($_POST["prihlasovaciHeslo"]))){ if(empty(trim($_POST["prihlasovaciHeslo"]))){
$password_err = "Please enter your password."; $password_err = "Please enter your password.";
session_start();
$_SESSION["wrongCr"] = true;
header("location: index.php");
} else{ } else{
$password = trim($_POST["prihlasovaciHeslo"]); $password = trim($_POST["prihlasovaciHeslo"]);
} }

Loading…
Cancel
Save