I have the following code in a html and suspect the line with "htmlspecialchars($_SERVER["PHP_SELF"])" is the error : ...
$check = 0;
if ($count == 1) {
if ($username == "johnny" && $password == "123123") {
echo "Hej $username. din kode er korrekt. Velkommen! <br>";
$check = 1;
}
else {
echo "hej, din kode eller brugernam " . "er forkert. <br>";
echo "forsøg venligst igen: <br><br>";
}
}
if (check == 0) {
echo "<h1>Indtast venligst brugernavn og din kode</h1>";
echo "<form action= \"htmlspecialchars($_SERVER["PHP_SELF"])\" method=\"post\">";
echo "<input type=\"hidden\" name=\"count\" value=\"1\">";
echo "username: <input type=\"text\" name=\"username\">";
echo "<br>";
echo "password: <input type=\"password\" name=\"password\">";
echo "<br><br>";
echo "<input type=\"submit\">";
echo "</form>";
}
?>
...