Re: HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!! can someone tell me whats wrong here? (newbie)
| From: | Ray | Date: | Thu, 10 Jul 2003 17:09:59 +0000 |
| Subject: | Re: HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!! can someone tell me whats wrong here? (newbie) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154755@lists.php.net to get a copy of this message | ||
> else if ($userlogin && $userpass == $admin && $adpw) {
this line probably isn't going to do what your thinking it will.
you probably want either
else if ($userlogin == $admin && $userpass == $adpw) {
or
else if (strcasecmp($userlogin,$admin) == 0 &&
strcasecmp($userpass,$adpw) == 0) {