The formmethod Attribute

The Current State of HTML5 Forms

<form method=post>
  <input name=hidden-value value=5 type=hidden>
  <input type=submit value=Submit formmethod=get>
</form>

Live Demo



 


Firefox
4+

Safari
5.2+

Safari
5+

Chrome
10+

Opera
10.6+

IE
10+

Android
4.0+

The Low Down

The formmethod attribute can force override a form’s set method (e.g. get or post) with the specified method.

  • Valid as an attribute of elements that can submit a form, including <inputtype=submit> and <input type=image> and <button>.

Our Cookie Policy and Privacy Policy outline how we use cookies to help optimize service, personalize content, tailor and measure our marketing, and improve your user experience. I agree to use of cookies for these purposes.