Unexpected && T_BOOLEAN_AND with username and password form - PHP : <p>So I've got a very simple html page which uses a post php method to send the username and password to the php script. However I get the error: unexpected '&amp;&amp;' (T_BOOLEAN_AND) when the details are passed to the script. Any ideas why?</p>

<p>Here's the html form: </p>

<pre><code>&lt;form action="login.php" method="post"&gt;
    &lt;p&gt; Username: &lt;/p&gt;
    &lt;input type="text" name="username"/&gt;
    &lt;p&gt; Password: &lt;/p&gt;
    &lt;input type="text" name="password"/&gt;
    &lt;input type="submit" value="Submit"/&gt;
&lt;/form&gt;
</code></pre>

<p></p>

<p>And here is the login.php script:</p>

<pre><code> &lt;?php
    if ($_POST["username"] == "t5" ) &amp;&amp;
        ($_POST["password"] == "just4fun") {    
        session_start();
        $_SESSION[‘username’] = true;
        header('Location  menu.php');
    }
    else { header('Location loginform.html') }
?&gt;
</code></pre>

<p>Thanks in advance.</p>
