RE: [PHP-DB] password checking

From: Date: Mon, 07 Aug 2000 21:20:51 +0000
Subject: RE: [PHP-DB] password checking
Groups: php.db 
Request: Send a blank email to php-db+get-1839@lists.php.net to get a copy of this message
Try this strcmp instead.. <?php if(strcmp($password,$password2)) { echo "passwords do not match"; } else { create account } ?> Wesley > -----Original Message----- > From: LDL Enterprise [SMTP:webmaster@ldlenterprise.com] > Sent: Monday, August 07, 2000 4:02 PM > To: PHP-Database List > Subject: [PHP-DB] password checking > > I am hoping someone can point me in the right direction. > > When a new user signs up they enter a password and then confirm the > password. How can I check that both passwords are the same before creating > the users account. This is what I have and it does not work. > <?php > if ($password == $password2) { > create account > } else { > echo "passwords do not match."; > } > ?> > Thanks in advance for any help. > Larry L. > webmaster@ldlenterprise.com >

« previous php.db (#1839) next »