PHP gevorderde |
|
doe het eens zo, if (als) er op $_POST['inloggen'] (je submit knop) geklikt is.
<?php
if (isset($_POST['inloggen'])) {
$gebruikersnaam = $_POST['username'];
$password = $_POST['password'];
if ($gebruikersnaam == "a" && $password == "b") {
header("Location: fout.html");
}
else {
header("Location: fout.html");
}
}
?>
<?php if (isset($_POST['inloggen'])) { $gebruikersnaam = $_POST['username']; $password = $_POST['password']; if ($gebruikersnaam == "a" && $password == "b") { header("Location: fout.html"); } else { header("Location: fout.html"); } } ?>
|