Re: password-protecting with PHP, help plz

From: Date: Mon, 20 Sep 2004 14:25:16 +0000
Subject: Re: password-protecting with PHP, help plz
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197288@lists.php.net to get a copy of this message
[snip]
And here is the action page, testing2.php. if ($_POST['user'] == 'Andrew') && ($_POST['pass'] == 'pass') { echo "Welcome, Andrew."; } And (shocker!) I got a blank page. So I turned out display errors and got this: Parse error: syntax error, unexpected T_BOOLEAN_AND in c:\TSW\pages\testing2.php on line 3
PLEASE ... read the manual on basic syntax.
Line 3 being the line with the && stuff. I'm not sure if the whole && thing is right...obviously not. How do I password protect with more than one factor?


« previous php.general (#197288) next »