?? upfile.asp
字號(hào):
<!--#include file='connect.asp'-->
<%
Dim strSql
strSql="select * from Class"
set rs=conn.execute(strSql)
%>
<html>
<head>
<title>上傳文件頁(yè)面</title>
<style>
body {font-size:9pt}
td {font-size:9pt}
input {font-size:9pt}
textarea {font-size:9pt}
</style>
</head>
<body bgcolor="#CCCCCC" background="image/background18311.gif">
<table border='0' width='680' align='center' cellspacing="0" cellpadding="0" background="image/background18311.gif" >
<tr bgcolor='#cccccc' height='1' >
<td bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td bgcolor='#FFFFFF' background="image/background18311.gif">
<div align="center">
<p><b><i><font size="7" color="#ff00ff">文件上傳</font></i></b></p>
<hr>
<p>該頁(yè)面設(shè)定可上傳文件大小為<font color='red'> 5M </font>以下</p>
</div>
<p align="center">并如果已經(jīng)存在同名文件將報(bào)錯(cuò)(具體可按需設(shè)定) </p>
<div align="center">
<table border='1' width="339" background="image/background18311.gif">
<form method="POST" action="upfile1.asp" enctype="multipart/form-data" id="form1" name="form1">
<tr>
<td width="63">報(bào)錯(cuò)方式:</td>
<td width="262">
<input type='radio' name='errnumber' value='0'>
自動(dòng)更名
<input type='radio' name='errnumber' value='1' checked>
報(bào)錯(cuò)提示
<input type='radio' name='errnumber' value='2'>
直接覆蓋</td>
</tr>
<tr>
<td width="63">文件類別:</td>
<td width="262">
<select name="fileclass1" size="1">
<% do while not rs.eof %>
<option value="<%=rs("classid")%>"><%=rs("classname")%></option>
<% rs.movenext %>
<% loop %>
</select>
</td>
</tr>
<tr>
<td width="63">文件主題:</td>
<td width="262">
<input type='text' name='filename' size='30'>
</td>
</tr>
<tr>
<td width="63">選擇文件:</td>
<td width="262">
<input type="file" name="fruit" size="30">
</td>
</tr>
<tr>
<td valign='top' width="63">文件簡(jiǎn)介:</td>
<td width="262">
<textarea name='fileExt' cols='40' rows='5'></textarea>
</td>
</tr>
<tr>
<td colspan='2' width="302">
<input type="submit" value="上傳文件" name="subbutt">
</td>
</tr>
</form>
</table>
</div>
</td>
</tr>
</body>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -