📄 upload.asp
字号:
<%IF not(Session("KEY")="super" or Session("KEY")="input") THEN
response.redirect "login.asp"
response.end
END IF%>
<html>
<head>
<title>图片上传</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=style.css rel=stylesheet>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="upfile.asp" enctype="multipart/form-data" >
<input type="hidden" name="act" value="upload">
<br>
<table width="80%" border="0" cellspacing="1" cellpadding="5" align="center" bordercolordark="#CCCCCC" bordercolorlight="#000000" bgcolor="#000000">
<tr bgcolor="#CCCCCC">
<td height="55" align="center" valign="middle" bgcolor="#abb8d6"> <b>文
件 上 传</b></td>
</tr>
<tr bgcolor="#CCCCCC">
<td height="20" align="center" valign="middle" bgcolor="#FFFFFF">如果是上传新闻图片,请先改名后再上传你的图片到新闻图片目录,本功能可以上传任意文件,你可以自定义新的目录。</td>
</tr>
<tr align="left" valign="middle" bgcolor="#eeeeee">
<td bgcolor="#eeeeee" height="92" align="center">
<script language="javascript">
function setid()
{
str='<br>';
if(!window.form1.upcount.value)
window.form1.upcount.value=1;
for(i=1;i<=window.form1.upcount.value;i++)
str+='文件'+i+':<input type="file" name="file'+i+'" style="width:400" class="tx1"><br><br>';
window.upid.innerHTML=str+'<br>';
}
</script>
<li> 需要上传的个数
<input type="text" name="upcount" class="tx" value="1">
<input type="button" name="Button" class="bt" onclick="setid();" value="设定">
</li>
<br>
<br>
<li>上传到:
<select name="filepath">
<option value="../images/news">新闻图片目录</option>
</select>
</li>
</td>
</tr>
<tr align="center" valign="middle">
<td align="center" id="upid" height="122" bgcolor="#FFFFFF"> 文件1:
<input type="file" name="file1" style="width:400" class="tx1" value="">
</td>
</tr>
<tr align="center" valign="middle" bgcolor="#eeeeee">
<td bgcolor="#abb8d6" height="24">
<input type="submit" name="Submit" value="提交" class="bt">
<input type="reset" name="Submit2" value="重执" class="bt">
</td>
</tr>
</table>
</form>
</body>
</html>
<script language="javascript">
setid();
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -