开发者

form ignores 'POST'

so..I have a form wit开发者_StackOverflow社区h method='post' set.

<form action='/${languageLinkCode}html/reservation' method='POST' name='homeform'>
//fields
<button>Submit</button>
</form>

when i click the submit button, it always uses 'GET' instead of 'POST'

I've trieddocument.forms['homeform'].submit(); as well

Am I doing something wrong here?


There is no space before name. Please validate your HTML.


You are missing a space between 'POST' and "name":

<form action='/${languageLinkCode}html/reservation' method='POST' name='homeform'>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜