www.gusucode.com > 维六酷博客管理系统 1.1源码程序 > master/test_upload.asp

    <!--#include file="../inc/randomString.asp" -->
<% ProgressID = gen_key(10) %>
<meta HTTP-EQUIV=Content-Type content="text/html; charset=gb2312">
<form action="test_uploadSave.asp" method="post" enctype="multipart/form-data" onSubmit="myOpen(this)">
文件:<INPUT name="file" type="file"  size="20">
文本:<INPUT name="text" type="text"  size="20" >
<input type="submit" value="submit">
</form>
<script>
function myOpen(form){
 window.open("../inc/fileUpProgress.asp?progressID=<%=ProgressID%>","","width=500,height=200,scrollbars=no,toolbar=no,status=no,resizable=no,menubar=no,location=no");
 var url=form.action;
 if (url.indexOf("?",0)==-1) {
  form.action = url+"?progressID=<%=ProgressID%>";
 }else{ 
  form.action = url+"&progressID=<%=ProgressID%>";
 }
}
</script>