I. Submission of the form:
The array that receives common form information is: $_get $_post $_request< cannot determine how forms are received >
The functions that receive file upload information are: $_files
The form cannot have the same name when you do multiple forms of uploading files at the same time.
If you want to do file upload <form> form must be added:
1.method= "POST"
2.enctype= "Multipart/form-data"
3. To add: <input type= "hidden" name= "max_file_size" value= "100000" >
Two. The operation of the file:
Text file type:
text/html. html. htm
Text/plain. txt. log
Image picture Type:
Image/gif. gif
Image/jpeg. jpeg. jpg
Image/png. png
Audio Voice Type:
Audio/x-midi Mid. Midi, mid
Audio/x-wav. wav
Video/quicktime. qt. mov
Video/mpeg. mpeg
Application file Type:
Application/pdf. pdf
Application/msword. doc Dot
Application/vnd.ms-excel. xls
Application/vnd.ms-powerpoint. ppt
Application/zip. zip
Application/rar. rar
Application/xml. Xml. Xsl
Application/mshelp. hlp. CHM
Application/octet-stream. ext. bin. com. dll. class
Is_uploaded_file (the target file name) determines whether the file is uploaded as a function.
Move_uploaded_file (1. destination file name 2. Location name to move to) the function to move the uploaded file to the new location.
Reprint indicated: www.111cn.net/phper/php.html