learning php login screen with username and password. but it doesnt work : <p>I have the following code in a html and suspect the line with "htmlspecialchars($_SERVER["PHP_SELF"])" is the error :
...
    

<pre><code>$check = 0;

if ($count == 1) {
    if ($username == "johnny" &amp;&amp; $password == "123123") {
        echo "Hej $username. din kode er korrekt. Velkommen! &lt;br&gt;"; 
        $check = 1;         
    }
    else {
        echo "hej, din kode eller brugernam " . "er forkert. &lt;br&gt;";
        echo "forsøg venligst igen: &lt;br&gt;&lt;br&gt;";
    }

}
if (check == 0) {
    echo "&lt;h1&gt;Indtast venligst brugernavn og din kode&lt;/h1&gt;";
    echo "&lt;form action= \"htmlspecialchars($_SERVER["PHP_SELF"])\" method=\"post\"&gt;";
    echo "&lt;input type=\"hidden\" name=\"count\" value=\"1\"&gt;";
    echo "username: &lt;input type=\"text\" name=\"username\"&gt;";
    echo "&lt;br&gt;";
    echo "password: &lt;input type=\"password\" name=\"password\"&gt;";
    echo "&lt;br&gt;&lt;br&gt;";
    echo "&lt;input type=\"submit\"&gt;";
    echo "&lt;/form&gt;";
}



?&gt;
</code></pre>

<p>

...</p>
