M
Matt
When the user click the submit button in myform.asp, then it will
invoke the
javascript to check the form data. I want to know if we need
document.myform.submit(); ?? Because even I comment it out,
formresponse.asp
could still get the form data.
//myform.asp
<script type="text/javascript">
function checkformdata()
{ //etc...
document.myform.submit();
}
</script>
<form name="myform" action="formresponse.asp" method="post"
onsubmit="checkformdata()">
//controls etc...
</form>
//formresponse.asp
<%= Request.Form %>
invoke the
javascript to check the form data. I want to know if we need
document.myform.submit(); ?? Because even I comment it out,
formresponse.asp
could still get the form data.
//myform.asp
<script type="text/javascript">
function checkformdata()
{ //etc...
document.myform.submit();
}
</script>
<form name="myform" action="formresponse.asp" method="post"
onsubmit="checkformdata()">
//controls etc...
</form>
//formresponse.asp
<%= Request.Form %>