Hi,

Does anyone know if and where I can get a php validator/Error checker? I have tried using the built-in validator in Dream Weaver. However, it only works for the html and not the php. I am following instructions that my lecturer has given us but I am missing something and I can not figure out what. This is an example of the code:

PHP Code:
<?php
//Start new session
session_start();
$email $_POST['Email'];
$password $_POST['Password']; 
if ((
$email == "[email protected]")&&
(
$password == "password")){
//Save the values in session variables
$_SESSION['email'] = $email;
echo 
"<h2>Authorisation success!!!</h2>";
echo 
"<a href=member_page.php>Click here to go to the members page</a>";
}
else
{
header("Location: login.htm");
exit;
}
?>
With the above code when accessed via wampserver through htm the follow appears on the screen:

Authorisation success!!!"; echo "Click here to go to the members page"; } else { header("Location: login.htm"); exit; } ?>
It outputs the code to the screen too and I can not see why?

Thanks,

Nightwalker