03-03-2008, 04:08 PM
|
#11 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
Post your entire script then. 
PHP Code:
<?php $username = 'TalkPHP'; $password = 'Wildhoney'; $usd = 'TalkPHP'; $pwd = 'Alan'; if ( ($username == $usd) && ($password == $pwd) ) { echo 'Both values appear to be equal, so I return it true.'; } elseif ( ($username == $usd) || ($password == $pwd) ) { echo 'Either username or password are not equal, but I return it true.'; } elseif ( !($username == $usd) && !($password == $pwd) ) { echo 'I indicate that both are wrong, so I return it false.'; }
Play around with the values a bit until you get the result you want. Otherwise, you should echo out all 4 variables with, for example, var_dump();. I hope this helps. Kinda finishing up Alan's topic here I guess. 
__________________
"Life is a bitch, take that bitch on a ride"
|
|
|