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.
Now let’s look at an example −
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!