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.

formAction

Summary

The formaction attribute specifies the URL of a file that will process the input control when the form is submitted.

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

Examples

<form action="login.php">
  First name: <input type="text" name="name"><br>
  Last name: <input type="text" name="surname"><br>
  <input type="submit" value="Login"><br>
  <input type="submit" formaction="admin_login.php"
  value="Login as admin">
</form>

Syntax

Standards information

See also

Related pages

Attributions