<form method="POST" action="" enctype="">

  • IE
  • Cr
  • Sf
  • Fx
  • O

The enctype attribute of the FORM element specifies the MIME type used to encode the form data.

<form method="POST" action="example.cgi" enctype="multipart/form-data"></form>

Attribute Value Explanation
enctype=" " application/x-www-form-urlencoded URLencode type (default)
multipart/form-data multipart type
text/plain plain text type

This attribute can be used when POST is specified for the method attribute.


<form method="POST" action="example.cgi" enctype="application/x-www-form-urlencoded">

<input type="text" name="Name" size="40"></p>

<textarea cols="50" rows="5" name="Comment"></textarea></p>

<p><input type="submit" value="Submit"></p>