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
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.