simple javascript validation

Status
You're currently viewing only E3's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

E3

Ars Centurion
387
<script Language = "JavaScript">
< !--
function VerifyData()
{
If (Document.FrmUser.PassWord.Value !=
document.FrmUser.VerifyPassword.Value)
{
alert("Your passwords do not match - please re-enter");
return false;
}
Else
return true;
}
-->
</script>


</form>


FORM ACTION="AddUser.asp" NAME="FrmUser" Method="POST" onSubmit="return
VerifyData()"


</form>


input type="password" name="Password" value="<% Session["Password")%>" size="30"

input type="password" name="VerifyPassword"

/form
somehow its not validating and posting my records
 
Status
You're currently viewing only E3's posts. Click here to go back to viewing the entire thread.
Not open for further replies.