关于调用的问题?在线等,急啊!!
大家帮我看一下吧,
这是当form2在提交的过程中时,即活form1的提交
但好象没有调用 ,怎么改一下才能调用呢?
<% @ 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>
------解决方案-------------------- <input type= "submit " value= "提交 " onclick= "form2_onsubmit ">
试试
------解决方案-------------------- <html>
<head>
<meta name= "VI60_defaultClientScript " content= "VBScript ">
<title> File Upload </title>
<script 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>