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 '&&' (T_BOOLEAN_AND) when the details are passed to the script. Any ideas why?
Here's the html form:
<form action="login.php" method="post">
    <p> Username: </p>
    <input type="text" name="username"/>
    <p> Password: </p>
    <input type="text" name="password"/>
    <input type="submit" value="Submit"/>
</form>
And here is the login.php script:
 <?php
    if ($_POST["username"] == "t5" ) &&
        ($_POST["password"] == "just4fun") {    
        session_start();
        $_SESSION[‘username’] = true;
        header('Location  menu.php');
    }
    else { header('Location loginform.html') }
?>
Thanks in advance.
 
     
    