Question- I have a page where a user can create a username and password. The username and password is stored in an access database. When the user hits submit on the fist page it calls an
asp page that enters it in the access database. The issue I have is with verifying the passwords. I get it to popup the error when the passwords don’t match but I can get it to reset the page so the user can reenter there information. This is the code I’m user
<
html>
<head>
<title>Account Create</title>
<script language="javascript">
<!--
function checkMe()
{
if (document.myForm.T2.value == document.myForm.T3.value)
{
document.myForm.PWD.value=document.myForm.T2.value ;
document.myForm.submit();
}
else
alert("Passwords do not match!");
}
//-->
</script>
<meta name="Microsoft Theme" content="safari 011">
</head>
<body>
<p style="background-color: #FF0000; color: #FF0000"></p>
<p align="center">Please enter your Email Address and password.</p>
<form method="POST" name="myForm" action="M_Create_account.
asp">
<input type="hidden" name="PWD">
<table border="5">
<tr>
<td>Email Address</td>
<td><input type="text" name="T1" size="20"></td>
</tr>
<tr>
<td bordercolorlight="#FF0000" bordercolordark="#FF0000">Password</td>
<td bordercolorlight="#FF0000" bordercolordark="#FF0000"><input type="password" name="T2" size="20"></td>
</tr>
<tr>
<td>Repeat Password</td>
<td><input type="password" name="T3" size="20"></td>
</tr>
<tr>
<td colspan="2" align="center" bordercolorlight="#FF0000" bordercolordark="#FF0000">
<p align="center">
<input type="submit" onClick="checkMe()" value="Submit" name="account.
asp">
<input type="reset" value="Reset">
</p>
</td>
</tr>
</table>
</form>
<p align="center" style="background-color: #FF0000; color: #FF0000"></p>
</body>
</
html>