Re: Case sensitive password

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

 



R.C. wrote:
> I have coded a php page that accepts a password.  What is the code to make
> sure the password entered is NOT case-sensitive?

Before you store the password, make it all lowercase (or uppercase,
whatever you prefer).

$password = strtolower($password);


When you compare the passwords, turn it all to lower (or upper) case
before you compare it.


-- 
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