|
-
Aug 1st, 2009, 04:53 AM
#1
[RESOLVED] PHP Validator/Error checking
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
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|