HTML
Try it »
Browser support





Internet Explorer 10, Firefox, Opera, Chrome, and Safari support the formmethod attribute.
**Note:** Internet Explorer 9 and earlier IE versions do not support the formmethod attribute.
Definition and Usage
The formmethod attribute specifies the HTTP method used to send the form data. The formmethod attribute overrides the form element's method attribute.
The formmethod attribute must be used with type="submit".
The form-data can be sent in the following ways:
- Sent as URL variables (using method="get")
- Sent as an HTTP post (using method="post")
Using the "get" method:
- The form data appears in the URL as name/value pairs.
- The amount of data sent by get is small and cannot exceed 2KB, mainly due to the URL length limit.
- Do not use the "get" method to send sensitive information! (Passwords or sensitive information will appear in the browser's address bar)
Using the "post" method:
- Send the form data as an HTTP post.
- More powerful and secure than the "get" method.
- No size limit
Differences between HTML 4.01 and HTML5
The formmethod attribute is new in HTML 5.
HTML