Re: Case sensitive password

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris,

Thank you.  That worked good. Appreciate the assistance.

Best
R.C.

"Chris" <dmagick@xxxxxxxxx> wrote in message
news:4859EBBA.2040501@xxxxxxxxxxxx
> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux