Home  >  Article  >  Backend Development  >  今日看了一个案例。 <form> 中的 <action> 属性没填

今日看了一个案例。 <form> 中的 <action> 属性没填

WBOY
WBOYOriginal
2016-06-13 12:56:14954browse

今天看了一个案例。

中的 属性没填
<br />
<form method="post"></form><br />


提问:表单中的action属性是不是有默认值?我看得那个小案例中没有填action, 但是运行成功了。

------解决方案--------------------
提交默认是本页
默认方式是get
------解决方案--------------------
楼上正解
------解决方案--------------------
引用:
提交默认是本页
默认方式是get


+1.浏览器默认的为get,本页。IE、ff 都是这样。如果非主流的浏览器就会出错
------解决方案--------------------
默认是本页+++++++++++++++
------解决方案--------------------
提交的话应该是本页面进行查询处理。
------解决方案--------------------
最好还是不要这样写
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