the MIME type

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

Internet Explorer Firefox Opera

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.


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