Re: Case sensitive password

From: Date: Thu, 19 Jun 2008 04:42:24 +0000
Subject: Re: Case sensitive password
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-275565@lists.php.net to get a copy of this message
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/

« previous php.general (#275565) next »