<span class="unnamed3">//upload.php <br>这是上传文件的界面,用任何一个编辑器都可以作出来很好看的。需要注意的是表格中的 <br>ENCTYPE="multipart/form-data"部分。这个一定不能错,否则服务器将不知道你在上传文件。 <br>其他的就没有什么好说的啦,嘻嘻,大家可以作个更好的。 <br><br><html> <br><head> <br><title>文件上传</title> <br><meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <br></head> <br><br><body bgcolor="#FFFFFF"> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><FORM ENCTYPE="multipart/form-data" NAME=myform ACTION=do.php METHOD="POST"> <br> <table width="600" border="1" cellspacing="0" cellpadding="0" align="center" height="160" bgcolor="#E2E3FE" bordercolorlight="#006699" bordercolordark="#FFFFFF"> <br> <tr> <br> <td colspan="4" height="40"> <br> <div align="center">文件上传</div> <br> </td> <br> </tr> <br> <tr> <br> <td width="80" height="40"> <br> <div align="center">选择上传文件</div> <br> </td> <br> <td width="170" height="40"> <br> <div align="left"> <br> <input type="file" name="myfile"> <br> </div> <br> </td> <br> <td width="80" height="40"> <br> <div align="center">选择文件类型</div> <br> </td> <br> <td width="170" height="40"> <br> <div align="left"> <br> <select name="type" size="1"> <br> <option value="通知" selected>通知</option> <br> <option value="下发文件">下发文件</option> <br> <option value="上报文件">上报文件</option> <br> </select> <br> </div> <br> </td> <br> </tr> <br> <tr> <br> <td width="80" height="40"> <br> <div align="center">上传者</div> <br> </td> <br> <td width="170" height="40"> <br> <div align="left"> <br> <input type="text" name="uploader" maxlength="20"> <br> </div> <br> </td> <br> <td height="40"> <br> <div align="center">上传日期</div> <br> <div align="left"> </div> <br> </td> <br> <td height="40"> <br> <input type="text" name="date" value="<? print(date("Y-n-j")); ?>"> <br> </td> <br> </tr> <br> <tr> <br> <td height="40"> <br> <div align="center"></div> <br> <div align="left"></div> <br> <div align="center"></div> <br> <div align="center">文件说明 </div> <br> </td> <br> <tdcolspan="3" height="40"> <br> <input type="text" name="fileshow" size="60"> <br> </td> <br> </tr> <br> </tr> <tr> <br> <tdcolspan="4" height="40"> <br> <div align="center"> <br> <input type="submit" name="Submit" value="上传"> <br> </div> <br> </td> <br> </tr> <br> </table> <br></form> <br></body> <br></html> <p style="width:100%;text-align:center;margin:10px 0"> <br> <br> </p> <p style="width:100%;text-align:center;margin:10px 0"> </p> <p class="clear"></p> </tr></span>