Name
ENCTYPE — NN all IE all HTML all
Synopsis
ENCTYPE=”MIMEType"Optional
Sets a MIME type for the data being submitted to the server with the
form. For typical form submissions (where the
METHOD attribute is set to
post), the default value is the proper content
type. If you include a file INPUT element, specify
"multipart/form-data" as the
ENCTYPE attribute. And for Navigator, it is
usually more convenient to have form data submitted to a
mailto: URL to be in the message body instead of
as a message attachment. To embed the form data into the message
body, set the ENCTYPE to
"text/plain".
Example
<FORM METHOD=POST ACTION="mailto:orders@giantco.com" ENCTYPE="text/plain"> ... </FORM>
Value
Case-insensitive MIME type (content type) value. For multiple items, a comma-delimited list is allowed.
Default
application/x-www-form-urlencoded
Object Model Reference
- NN
[window.]document.forms[i].encoding
[window.]document.formName.encoding
- IE
[window.]document.forms[i].encoding
[window.]document.formName.encoding
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access