R
r0adhog
I have a very simple form:
<html>
<head>
</head>
<body>
<%
function ValForm()
if len(document.form.newapp.all("AccessCode").Value) = 4 then
document.form.newapp.submit()
else
msgbox "Access Code in Improper Format"
end if
end function
%>
<form action="process.asp" method="Post">
<form name="newapp">
<input type="password" autocomplete="off" name="AccessCode"></td>
<input type="button" value="Submit" Name="Submit" onclick="ValForm()">
</form>
</body>
</html>
As you can see, I am attempting to do some very simple form validation. I
am getting
a script error. Any help or any other suggestions on how to do what I am
attempting?
Thanks,
rh
<html>
<head>
</head>
<body>
<%
function ValForm()
if len(document.form.newapp.all("AccessCode").Value) = 4 then
document.form.newapp.submit()
else
msgbox "Access Code in Improper Format"
end if
end function
%>
<form action="process.asp" method="Post">
<form name="newapp">
<input type="password" autocomplete="off" name="AccessCode"></td>
<input type="button" value="Submit" Name="Submit" onclick="ValForm()">
</form>
</body>
</html>
As you can see, I am attempting to do some very simple form validation. I
am getting
a script error. Any help or any other suggestions on how to do what I am
attempting?
Thanks,
rh