Re: password-protecting with PHP, help plz

From: Date: Sun, 19 Sep 2004 16:38:59 +0000
Subject: Re: password-protecting with PHP, help plz
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197203@lists.php.net to get a copy of this message
AceZero2790@aol.com wrote:
I appreciate the help, but unfortunately it still doesn't work. I changed testing2.php, the action page to do this: <?php if ($_POST['user']) == me {
    echo "Andrew";
} else {
    echo "not me";
} ?> I still get a blank page. What's more I turned on Display Errors and restarted the server, but still got no error message.
Your errors are still not displaying. Recheck display errors and error_reporting. Your line with the if statement is generating a parse error. You have an = sign that PHP is sure to complain about. Janet

« previous php.general (#197203) next »