Script to establish file Exchange capabilities (ii) _php Foundation

Source: Internet
Author: User
Tags file upload
upload.php
This is the upload file interface, with any editor can be made to look good. You need to be aware that the table
Enctype= "Multipart/form-data" section. This must not be wrong, otherwise the server will not know you are uploading files.
The others have nothing to say, hee, we can make a better.

<title> File Upload </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">

<body bgcolor= "#FFFFFF" >
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<form enctype= "Multipart/form-data" Name=myform action=do.php method= "POST" >
<table width= "border=" 1 "cellspacing=" 0 "cellpadding=" 0 "align=" center "height=" 160 "bgcolor=" #E2E3FE " bordercolorlight= "#006699" bordercolordark= "#FFFFFF" >
<tr>
&LT;TD colspan= "4" height= ">"
<div align= "center" > File Upload </div>
</td>
</tr>
<tr>
&LT;TD width= "height=" >
<div align= "center" > select Upload file </div>
</td>
&LT;TD width= "170" height= ">"
<div align= "Left" >
<input type= "File" name= "MyFile" >
</div>
</td>
&LT;TD width= "height=" >
<div align= "Center" > select file Type </div>
</td>
&LT;TD width= "170" height= ">"
<div align= "Left" >
<select name= "Type" size= "1" >
<option value= "notification" selected> notification </option>
<option value= "issued documents" > Issued documents </option>
<option value= "escalation file" > escalation file </option>
</select>
</div>
</td>
</tr>
<tr>
&LT;TD width= "height=" >
<div align= "center" > uploaded by </div>
</td>
&LT;TD width= "170" height= ">"
<div align= "Left" >
<input type= "text" name= "uploader" maxlength= ">"
</div>
</td>
&LT;TD height= ">"
<div align= "center" > Upload date </div>
<div align= "Left" > </div>
</td>
&LT;TD height= ">"
<input type= "text" name= "date" value= " Print (Date ("Y-n-j");?> ">
</td>
</tr>
<tr>
&LT;TD height= ">"
<div align= "center" ></div>
<div align= "left" ></div>
<div align= "center" ></div>
<div align= "Center" > Document Description </div>
</td>
&LT;TD colspan= "3" height= ">"
<input type= "text" name= "fileshow" size= ">"
</td>
</tr>
<tr>
&LT;TD colspan= "4" height= ">"
<div align= "center" >
<input type= "Submit" name= "submit" value= "Upload" >
</div>
</td>
</tr>
</table>
</form>
</body>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.