Heim  >  Artikel  >  Backend-Entwicklung  >  关于php程序员必知必会的一些html知识_PHP教程

关于php程序员必知必会的一些html知识_PHP教程

WBOY
WBOYOriginal
2016-07-20 11:16:38897Durchsuche

  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= /...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn