This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

formMethod

Summary

The formmethod attribute defines the HTTP method for sending form-data to the action URL.

Applies to [HTMLInputElement](/html/elements/input)
The formmethod attribute overrides the method attribute of the \ element.

Examples

<form action="submit_post.php" method="post">
  Input field: <input type="text" name="inputfield">
  <input type="submit" value="Submit">
  <input type="submit" formmethod="get" formaction="submit_get.asp" value="Submit using GET">
</form>

Syntax

Standards information

See also

Related pages

Attributions