form2_onsubmit 为什么没有执行。
<% @ language=vbscript %>
<html>
<head>
<meta name= "VI60_defaultClientScript " content= "VBScript ">
<title> File Upload </title>
<script ID= "clientEventHandlersVBS " LANGUAGE= "vbscript ">
<!--
Sub form2_onsubmit //** 这里是关键,当form2在提交的过程中时,即活form1的提交
form1.submit //**所以我们这里用了两个表单,但只用一个提交就可以了。
End Sub
-->
</script>
</head>
<body>
<form name= "form1 " ENCTYPE= "multipart/form-data " ACTION= "upimage.asp " METHOD= "POST " target= "_blank ">
Please choose a picture to upload: <br/>
<input NAME= "picture " TYPE= "FILE "> <br/>
</form>
<form name= "form2 " action= "uptext.asp " method= "post ">
<input type= "text " name= "text1 "> <br/>
<input type= "text " name= "text2 "> <br/>
<input type= "submit " value= "提交 ">
</form>
</body>
</html>
------解决方案--------------------习惯用JAVASCRIPT写。呵呵。改写下:
<html>
<head>
<meta name= "VI60_defaultClientScript "
content= "VBScript ">
<title> File Upload </title>
<script LANGUAGE= "javascript ">
<!--
function submitall(){
document.form1.submit();
}
-->
</script>
</head>
<body>
<form name= "form1 " ENC