http://javascript.internet.com - this has a "password validation script"
where you enter your password twice; but it's adaptable to whatever you
like, such as email addresses.
This is the one:
<!-- TWO STEPS TO INSTALL PASSWORD VERIFIER:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Carey Walker (
[email protected]) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!!
http://javascript.internet.com -->
<!-- Begin
function checkPw(form) {
pw1 = form.pw1.value;
pw2 = form.pw2.value;
full_name=form.full_name.value;
if (pw1 != pw2) {
alert ("\nYou did not enter the same new password twice. Please re-enter
your password.")
return false;
}
else return true;
}
if (full_name = "") {
alert ("\n No value was entered in the NAME field. Please enter a value")
return false;
}
else return true;
}
// End -->
</script>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<form onSubmit="return checkPw(this)">
<center>
<table border=0>
<tr>
<td>Password:</td><td><input type=text name=pw1 size=10></td>
</tr>
<tr>
<td>Re-enter:</td><td><input type=text name=pw2 size=10></td>
</tr>
<tr>
<td colspan=2 align=center><input type=submit value="Submit!"></td>
</tr>
</table>
</form>
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="
http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.13 KB -->