(表单的设定)
该文件为html表单,重要的是有两个隐藏的值,分别传递上传文件上限和简介的上限
html>
<head>
<title>文件上传文件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="770" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>教程上传</td>
</tr>
<form method="post" action="inputok.php" enctype="multipart/form-data">
<tr>
<td height="288" valign="top">
<p>文章标题:
<input type="text" name="title">
<br>
教程种类:
<input type="radio" name="class" value="php">
php
<input type="radio" name="class" value="asp">
asp
<input type="radio" name="class" value="jsp">
jsp
<input type="radio" name="class" value="xml">
xml<br>
<input type="radio" name="class" value="java">
java
<input type="radio" name="class" value="数据库">
数据库
<br>
文件路径:
<input type="file" name="url">
<input type="hidden" name="max_url_size" value="5120">
<br>
教程简介:
<textarea name="intro" cols="30" rows="3"></textarea>
<input type="hidden" name="intro_size" value="100">
<br>
<input type="submit" name="submit" value="送出">
<input type="reset" name="reset" value="清除">
</form>
</p>
</td>
</tr>
</table>
</body>
</html>
|