The difference between multipart/form-data and application/x-www-form-urlencoded_PHP tutorial

WBOY
Release: 2016-07-13 17:37:32
Original
899 people have browsed it

The enctype attribute of the FORM element specifies the encoding type used when submitting form data to the server. The default default value is "application/x-www-form-urlencoded".

However, this encoding is inefficient when sending large amounts of text, text containing non-ASCII characters, or binary data to the server.

When uploading files, the encoding type used should be "multipart/form-data", which can send text data and also supports binary data upload.

The value of the ENCTYPE attribute of the

form on the Browser side is multipart/form-data. It tells us that the data to be transmitted must use the multimedia transmission protocol. Since multimedia transmits a large amount of data, it is stipulated that the uploaded file must be post method, the type attribute of must be file.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/486559.htmlTechArticleThe enctype attribute of the FORM element specifies the encoding type used when submitting form data to the server. The default value is is "application/x-www-form-urlencoded". However, when sending the message to the server...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template