|
Helping ordinary people create extraordinary websites! |
HTML Form Tutorial, Part IBy Will Bontrager2004-07-06
Specifying the Encoding Method for the Information Being Sent The final <form> tag attribute we'll cover in this tutorial specifies how the information will be encoded before sending it to wherever it's going. That's the "enctype" attribute. The browser automatically encodes the information depending on the enctype attribute. Encoding transforms special non-alphanumeric characters that could otherwise wreak havoc during transmission or upon receipt into a series of characters that the receiving program or function can recognize. Encoding also inserts separators between the information chunks. Often you don't have to concern yourself with the enctype. If you do not specify one, the default is assumed. The default enctype attribute is:
If your form includes file uploads, you will need
And, if you will be using a mailto: link in the action attribute, your email body text will be less jumbled if you use
Tutorial Pages: » HTML Form Tutorial, Part I » How Information Is Sent » Specifying the Encoding Method for the Information Being Sent » Form Related Tags » The <input> Tag » Part II Copyright 2004 Bontrager Connection, LLC |
|