开发者

form ignores 'POST'

开发者 https://www.devze.com 2023-03-23 10:27 出处:网络
so..I have a form wit开发者_StackOverflow社区h method=\'post\' set. <form action=\'/${languageLinkCode}html/reservation\' method=\'POST\' name=\'homeform\'>

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

精彩评论

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