Home > Backend Development > PHP Tutorial > Some HTML knowledge that PHP programmers must know_PHP Tutorial

Some HTML knowledge that PHP programmers must know_PHP Tutorial

WBOY
Release: 2016-07-20 11:16:38
Original
948 people have browsed it

  1.form表单,



 
上传文件  一定要用post方法上传   还要是enctype="multipart/form-data"   


accept属性列表

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"
在这里如果想支持多种类型的话,比如金山的office和microsoft的office的不同扩展名,这样的话可以在accept里面放置多个属性就可以了:

如果不限制图像的格式,可以写为:accept="image/*"。同样是可以的
php处理页面的获取$_FILES['NAME']['name']
具备按钮功能哦
一组用相同的name
  dom对象.checked  = true or false
提交
重置表单
按钮
隐藏域




id唯一
URL编码。中文,特殊符号,等。
url的参数如果有特殊符号,?/等,可以urlencode编码。。。。获取后用urldecode解码。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/372615.htmlTechArticle1.form表单, form name=form1 id=form1 method=GET/POST action = 提交url target=_blank,_parent,_self,_top enctype=multipart/form-data / input type=text name= id= value= class= /...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template