$user = $_POST['user']; $pass = $_POST['pass']; $self = $_SERVER['PHP_SELF']; if( ( $user != null ) and ( $pass != null ) ) { setcookie( "auth","ok" ); header( "Location:loggedin.php" ); exit(); }?> Set Cookie Data " method="post"> Name: Password: