Keep your visitors from submitting their form until their "password" and "re-enter password" fields match, for verification purposes. They get an error message telling them to re-enter the passwords if they do not match.
Add the below code to the <body> section of your page:
<scriptlanguage="javascript"type="text/javascript"> /* Visit http://www.yaldex.com/
for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin function
checkPw(form){ pw1 =form.pw1.value; pw2 =form.pw2.value;
if(pw1
!=
pw2){ alert("\nYou
did not enter the same new password twice. Please re-enter your
password.") returnfalse;
} elsereturntrue;
} // End --> </script> <formonSubmit="return
checkPw(this)">