This page is Not Ready

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

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