the MIME type


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

Browser
Internet Explorer Firefox Opera
Type
Block-level

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">


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.

Tips and Notes

Specify the "multipart/form-data" when file selection box is used.


Example

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

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

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

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

</form>