1.form form,
<form name= "Form1" Id= "Form1" method= "action =" Submit URL "get/post" target= "_blank,_parent,_self,_top" Multipart/form-data "/>
<input type= "text" name= "id=" "value=" "class=" "/>"
<input type= "Password" name= "id=" "value=" "class=" "/>"
<input type= "File" name= "id=" "value=" "class=" "accept=" "/> Upload files must be uploaded by post method and if Enctype=" Multipart/form-data "
<input type= "File" accept= "Application/msword" ><br><br>accept Properties list <br>
1.accept= "Application/msexcel"
2.accept= "Application/msword"
3.accept= "Application/pdf"
4.accept= "Application/poscript"
5.accept= "Application/rtf"
6.accept= "Application/x-zip-compressed"
7.accept= "Audio/basic"
8.accept= "Audio/x-aiff"
9.accept= "Audio/x-mpeg"
10.accept= "Audio/x-pn/realaudio"
11.accept= "Audio/x-waw"
12.accept= "Image/gif"
13.accept= "Image/jpeg"
14.accept= "Image/tiff"
15.accept= "Image/x-ms-bmp"
16.accept= "IMAGE/X-PHOTO-CD"
17.accept= "Image/x-png"
18.accept= "Image/x-portablebitmap"
19.accept= "Image/x-portable-greymap"
20.accept= "Image/x-portable-pixmap"
21.accept= "Image/x-rgb"
22.accept= "Text/html"
23.accept= "Text/plain"
24.accept= "Video/quicktime"
25.accept= "VIDEO/X-MPEG2"
26.accept= "Video/x-msvideo"
If you want to support a variety of types here, such as Kingsoft Office and Microsoft Office's different extensions, then you can put multiple attributes in accept:
<form> <input type= "file" name= "pic" id= "pic" accept= "image/gif, Image/jpeg"/></form>
If you do not restrict the format of the image, you can write as: accept= "image/*". It's also possible.
PHP Processing page acquisition $_files[' name ' [' Name ']
<input type= "image" Name= "id=" "class=" "src=" path/> with button function oh
<input type= "Radio" name= "id=" "value=" "class=" "checked=" Checked "/>" a group with the same name
<input type= "checkbox" Name= "name[" id= "value=" "class=" checked= "Checked"/> dom object. Checked = TRUE or False
<input type= "Submit" Name= "id=" "value=" "class=" "/>"
<input type= "reset" name= "id=" "value=" "class=" "/> Reset Form
<input type= "button" Name= "id=" "value=" "class=" "/>" button
<input type= "hidden" name= "id=" "value=" "class=" "/> Hidden Fields"
<select name= "id=" "class=" ">
<option value= "" selected= ' selected ' >value1</option>
</select>
<select name= "id=" "size=" "class=" "Multiple >
Menu format, all listed
can have multiple selected
<option value= "" >value1</option>
</select>
<textarea name= "id=" "rows=" "cols=" "value=" ">xxxxx</textarea>
</form>
ID Unique
URL encoding. Chinese, special symbols, etc.
If there is a special symbol for the parameter of the URL, /etc, can urlencode coding .... After acquiring, decode with UrlDecode.
This article links http://www.cxybl.com/html/wlbc/Php/20130616/38659.html