upload1.asp 714 B

12345678910111213141516171819202122232425262728
  1. <%
  2. if session("adminxxx")="" then
  3. response.Redirect("../login.html")
  4. end if
  5. %>
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  9. <SCRIPT language=javascript>
  10. function check()
  11. {
  12. var strFileName=document.form1.FileName.value;
  13. if (strFileName=="")
  14. {
  15. alert("请选择要上传的文件");
  16. document.form1.FileName.focus();
  17. return false;
  18. }
  19. }
  20. </SCRIPT>
  21. </head>
  22. <body leftmargin="0" topmargin="0" bgcolor="#F2F2F2">
  23. <form action="Upfile1.asp" method="post" name="form1" onSubmit="return check()" enctype="multipart/form-data">
  24. <input name="FileName" type="FILE" class=inputuser size="35">
  25. <input type="submit" class=boxttx name="Submit" value="上传"">
  26. </form>
  27. </body>
  28. </html>