www.gusucode.com > 维六酷博客管理系统 1.1源码程序 > master/UploadForm.asp
<!--#include file="../inc/function.asp"--> <!--#include file="../inc/randomString.asp" --> <% ProgressID = gen_key(10) %> <% upFolder=RequestQueryStr("upFolder") inputName=RequestQueryStr("inputName") %> <META http-equiv=Content-Type content=text/html;charset=GB2312> <style type="text/css"> <!-- body,td,th { font-size: 12px; } --> </style> <link href=images/admin.css rel=stylesheet> <script type="text/javascript"> function lookpic() { parent.document.getElementById('picsmall').innerHTML="<img src=\""+document.getElementById('file').value+"\" width=\"90\" height=\"90\">"; } </script> <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> <form action="upfile.asp" method="post" enctype="multipart/form-data" name="sub_upload" target="_self" onSubmit="myOpen(this)"> <input type="hidden" name="upFolder" value="<%=upFolder%>"> <input type="hidden" name="inputName" value="<%=inputName%>"> <input name="file" type="file" size="25" onchange="lookpic()"> <input type="submit" name="Submit" value="上传"> </form>