HTML | input formmethod Attribute
The HTML <input> formmethod Attribute is used to specify the HTTP method for sending form-data to the action URL. This attribute is used to override the method attribute of the <form> element.
<input formmethod="get | post">
- get: It has a default value. In the GET method, after the submission of the form, the form values will be visible in the address bar of the new browser tab. It has a limited size of about 3000 characters. It is only useful for non-secure data not for sensitive information.
- post: In the post method, after the submission of the form, the form values will not be visible in the address bar of the new browser tab as it was visible in the GET method. It appends form data inside the body of the HTTP request. It has no size limitation. This method does not support bookmark the result.
Supported Browsers: The browsers supported by HTML input formmethod Attribute are listed below:
- Google Chrome 9.0
- Internet Explorer 10.0
- Firefox 4.0
- Safari 5.1
- Opera 10.6