Home  >  Article  >  Web Front-end  >  表单元素之搭车系_html/css_WEB-ITnose

表单元素之搭车系_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 08:58:20991browse

我们一一点击,就知道发现什么回事了。

隐藏域就不用说了,它肯定会提交。

submit按扭会携带其自身的name,value提交到后台,这样我们就可以少写一个隐藏域。

image按钮这里写不怎么规范,它其实还要一个src属性,指定一个图片,提交时,地址变成这样的:

http://localhost:8383/avalon/newhtml.html?bbb=eee&submit.x=7&submit.y=8&submit=yyy

image能提交你当时的点击位置,因此在早些年,可以防止机器人刷单刷评论!

如果button标签不指定type值,那么它会默认是submit,其效果与input[type=submit]相同!

reset按钮不会提交,因此没有反应。

此外,总结一下各种提交表单的方式:

  • 点击input[type=submit]
  • 点击input[type=image]
  • 点击button[type=submit]
  • 在文本域或密码域等可以填空的表单元素内回车!
Statement:
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