English 中文(简体)
我是否总是确定“行动”归属?
原标题:Should I always set the "action" attribute?

一、导 言

<form action="<?= $_SERVER[ REQUEST_URI ] ?>">

<打字码>>此处的特性是否有意义?

如果没有这种形式,这种形式是否同样如此?

最佳回答

You should always include the action attribute in your form tag if you want a good valid markup (which you should). It is a required attribute (though most browsers will work around it if you don t and assume action="").

使用:

<form action="" method="post">

页: 1

希望这一帮助。

问题回答

如果你把它搁置起来,你就会发挥同样的作用(这是我所希望的)。

<form action="" method="post"> ....

是的,你必须列入<条码>行动在<条码>和>内的位置;格式和编号;。 See some documentation

然而,你不需要通过现有的《国际投资报告》,你可以添加空洞的<条码>。 类似:

<form action="">
...
</form>

之后,表格将发送至目前地点(现存的URI)。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签