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.as p
could still get the form data.
//myform.asp
<script type="text/javascript">
function checkformdata()
{ //etc...
document.myform .submit();
}
</script>
<form name="myform" action="formres ponse.asp" method="post"
onsubmit="check formdata()">
//controls etc...
</form>
//formresponse.as p
<%= 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.as p
could still get the form data.
//myform.asp
<script type="text/javascript">
function checkformdata()
{ //etc...
document.myform .submit();
}
</script>
<form name="myform" action="formres ponse.asp" method="post"
onsubmit="check formdata()">
//controls etc...
</form>
//formresponse.as p
<%= Request.Form %>
Comment