Wednesday, June 15, 2011

html form Enctype use of the property

Usage: form the form Enctype property specifies the data back to the server, the browser type of encoding used. The following description of its value: multipart/form-data: form datais encoded as a message, the page corresponding to each control a part of the message. application/x-www-form-urlencoded: Form data is encodedas name/value pairs. This is the standard encoding format. text/plain: Form data is encodedin plain text form, which does not contain any control or format characters.
Form to file to upload: <*form name="userInfo" method="post" action="upimg.php" ENCTYPE="multipart/form-data"> form set enctype ="multipart/form-data" to anonymously upload files to ensure that the correct code. As follows: <*tr><*td> Upload: <*/td><*td><*INPUT TYPE="FILE" NAME="uploadfile" SIZE="30" need to add ENCTYPE ="multipart/form-data". Form enctype ="multipart/form-data" means the form is set MIME encoding. By default, the encoding format is application/x-www-form-urlencoded, cannot be used for file uploads; only use the multipart/form-data, file data transfer to complete, the following operation. Enctype ="multipart/form-data" is to upload binary data past. input form the values inside the hex way 2 pass the past, so request to the request will be passed unsuccessful.
Note: In fact, "*" is not, is the failure to make the code!


1 Comment:

Anonymous said...

yeah a nice blog to read ..even though the contents are less it has got lot of useful information..I feel that you could have added information about.HTML Quiz .

Post a Comment

Buy.com(Computers, Electronics, Digital Cameras, Books, DVDs, Music, Games, Software, Toys, Sports) Save up to 50% on all Hotels worldwide. Book now with CheapOair. godaddy(Domain, Hosting)