HTML CSS Reference/HTML Attributes Reference/enctype

Материал из Web эксперт
Перейти к: навигация, поиск

"enctype" Example

<head><Title>Example For enctype</Title></head>
<body onUnload="document.forms[0].reset()">
<form name="form1" method="post" action="" encoding="text/plain">
   <p>My Password: 
      <input type="password" name="textfield" value="15151515"size="20">
      <input type="button" name="Submit" value="Submit">

enctype is applied to

| Applied_To     |<form>                                                        |

"enctype" Syntax and Note

This attribute sets the MIME encoding type.
The default value is application/x-www-form-urlencoded.
<form enctype="value"> . . . </form>
HTML  <FORM ENCTYPE = sType... >
Scripting  FORM.encoding [ = sType ]