upload.asp

来自「1.理解Winsock编程模型; 2.掌握Winsock编程的基本方法」· ASP 代码 · 共 79 行

ASP
79
字号
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
 if session("uname")="" then
%>
<script language="javascript">
				if 	(confirm("您进行的是非法登录,请重新登录!"))
				  location.href="admin.asp";			
				</script>
<%
end if
%>
<%
session("uppath")=request("uppath")
session("ProdId")=request("ProdId")
session("frmname")=request("frmname")
dim cls



%>


<%
Server.ScriptTimeOut=999999
%>
<html>
<head>
<title>上传文件</title><meta name="Description" Content="">
<meta name="Keywords" Content="">
<link rel="stylesheet" href="admin.css" type="text/css">
<style type="text/css">
<!--
.style1 {color: #666666}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" bgcolor="#666666"> 
<table width="100%" border="0" height="100%">
  <tr>
    <td> 
      <table width="50%" border="0" align="center" bgcolor="#000000" height="269">
        <tr>
          <td>
            <table width="300" border="0" align="center" bgcolor="#FFFFFF" height="100%" cellspacing="10">
              <tr> 
                <td height="20" bgcolor="#FFFFFF" valign="middle">
                  <div align="center">
                    <p align="center"><font color="#006600">&#24320;&#22987;&#19978;&#20256;</font>                    
                  </div>
                </td>
              </tr>
              <tr> 
                <form name="form1" method="post" action="uploadsave.asp" enctype="multipart/form-data"> <td height="147" bgcolor="#FFFFFF" align="center" >                 
                    <p align="center" class="style1">                 
                    <b><br>
                    </b><br>
                      <br>
                      <input type=file name="file1">
                      <input type=submit name="submit" value="上传"> 
                    <br>
                    <br>
                    </p>
                  </td>
                </form>
              </tr>
              <tr> 
                <td height="30" bgcolor="#CCCC00"> 
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<input name="textfield2" type="text" size="6" maxlength="6">
</body>  
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?