📄 upfile.asp
字号:
<!--#include file="session1.asp"-->
<html>
<head>
<title>上传</title>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<form name="form1" method="post" action="upload.asp" enctype="multipart/form-data" >
<input type="hidden" name="act" value="upload">
<table cellpadding="3" cellspacing="1" border="0" width="90%" class="tableBorder" align=center>
<tr>
<th class="tableHeaderText">文件上传</th>
</tr>
<tr class="forumRowHighlight">
<td align=center class="forumRowHighlight"> <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 name="upcount" type="text" class="tx" value="2" size="2">
<input class="button" type="button" name="Button" onClick="setid();" value="· 设定 ·">
上传目录: <input type="text" name="filepath" class="tx" style="width:150" value="<%=Request.QueryString("Path")%>"></li></td>
</tr>
<tr>
<td align=center id="upid" class="forumRowHighlight"> 文件1: <input class="button" type="file" name="file1" style="width:400" value="">
</td>
</tr>
<tr>
<td align="center" class="forumRowHighlight"> <input class="button" type="submit" name="Submit" value="· 提交 ·">
<input class="button" type="reset" name="Submit2" value="· 重执 ·"> </td>
</tr>
</table>
</form>
<script language="javascript">
setid();
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -