This is what I use:
Javascript:
function checkPass() {
if ((document.changepass.CurrentPassword.value != '') &&
(document.changepass.ConfirmNewPassword.value ==
document.changepass.NewPassword.value)){
document.changepass.ConfirmNewPassword.blur();
document.changepass.submit();
}
}
Form excerpt, form name = changepass:
.
<table>
<tr>
<td><font face="Arial, Helvetica, sans-serif" size="-1"><b>Password:</b>
<input type="Password" NAME="CurrentPassword" size="10" maxlength="20">
</font></td>
<td><font face="Arial, Helvetica, sans-serif" size="-1"><b>New Password:</b>
<input type="Password" NAME="NewPassword" size="10" maxlength="20">
</font></td>
<td><font face="Arial, Helvetica, sans-serif" size="-1"><b>Confirm New
Password:</b>
<input type="Password" NAME="ConfirmNewPassword" size="10" maxlength="20"
onkeyup="javascript:checkPass()">
</font></td>
</tr>
</table>
.
This script is called every time a key is pressed and it auto submits as
soon as the ConfirmNewPassword = NewPassword.
Good luck,
Alexander Sicular
Chief Technology Architect
Neurological Institute of New York
Columbia University
as867 [at] columbia {dot} edu
|-----Original Message-----
|From: Jon [mailto:[EMAIL PROTECTED]]
|Sent: Monday, March 11, 2002 1:49 PM
|To: CF-Talk
|Subject: Password retype validation
|
|
|Hi
|
|Can anyone help a new kid
|
|I need to do a retype password validation
|
|how do I do that ? Hidden fields?
|
|Thanks
|JON
|
|
|_________________________________________________________
|
|Do You Yahoo!?
|
|Get your free @yahoo.com address at http://mail.yahoo.com
|
|
|
|
______________________________________________________________________
Why Share?
Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists