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.

formEnctype

Summary

The formenctype attribute specifies how the form-data should be encoded when submitting it to the server.

Applies to [HTMLInputElement](/html/elements/input)
The formenctype attribute overrides the enctype attribute of the \ element with method="post".

Examples

<form action="submit.php" method="post">
  Input field: <input type="text" name="inputfield">
  <input type="submit" value="Submit">
  <input type="submit" formenctype="multipart/form-data" value="Submit as Multipart/form-data">
</form>

Syntax

Standards information

See also

Related articles

HTML

Related pages

Attributions