Chris,

Thank you.  That worked good. Appreciate the assistance.

Best
R.C.

"Chris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> R.C. wrote:
> > Thank you for your reply.  The password is not stored, actually, like in
a
> > databse.  We're only dealing with one password. When the user inputs the
> > password, he/she should be able to input either in lower or upper case
or
> > both abd they should have access to the "protected file" in this case.
>
> As Nathan mentioned, just compare them in the same way.
>
> $stored_password = strtolower($stored_password);
>
> $user_password = strtolower($user_password);
>
> if ($stored_password == $user_password) {
> echo "Yay!";
> } else {
> echo "No :(";
> }
>
> -- 
> Postgresql & php tutorials
> http://www.designmagick.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to