Jump to content

how to check to see if passwords are identical??


cluce

Recommended Posts

Can someone tell me how to add an onclick behavior and tell it to do this ...

 

if (($_POST["password"]) !== ($_POST["confirmpassword"])){

echo ("passwords must be identical");

 

}else{

 

Instead of putting this on a second page and having duplicate pages to display the error message, I am trying to confirm the passwords before submitting or inserting a new record in the database and if they dont match have it display a message on the same page. Anybody have any ideas? I am using Dreamweaver 8 and PHP and mySQL.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.