PHP Code:
<?php
if( ($_POST['user'] !+ null) and ($_POST['pass'] != null) )
{
setcookie("auth","ok");
header("Location:loggedin.php" ); exit();
}
?>
<html> <head> <title>Set cookie data</title></head>
<body>
<form action="login.php" method="post">
Name:     <br/><input type="text" name="user"><br/><br/>
Password: <br/><input type="text" name="pass"><br/><br/>
<input type="submit" value="Log Me in">
</form> </body></html>
hmm.... the page doesnt load.

I know the error is in the if statement bit at the top, and $user and $pass are null at the mo, so the code should just skip over that bit right? well it doesnt work. does anyone know why?