In HTML, what does enctype='multipart/form-data' mean?

PHPz
Release: 2023-08-22 08:53:22
forward
1337 people have browsed it

In HTML, what does enctype=multipart/form-data mean?

Use the enctype attribute to specify how the browser encodes data before sending it to the server. Possible values ​​are -

  • application/x-www-form-urlencoded − This is the standard method used by most forms in simple scenarios.

  • mutlipart/form-data − This is used to upload binary data in a form, such as images, Word files, etc.

Example

Now let’s look at an example −




   HTML enctype attribute
   

Login

Enter the login details
Copy after login

Log in and display results −

The above is the detailed content of In HTML, what does enctype='multipart/form-data' mean?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:tutorialspoint.com
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!