Php uses html5 to upload multiple files to an instance

Source: Internet
Author: User
Tags php website
Before html is available, it is difficult to implement php multi-file upload. you need to add multiple inputfile fields in the form. After html5 is released, we can use the html5 attribute multiple of inputfile to upload multiple files. if you need it, refer to the following: first, we will introduce the multiple attribute of file in html5.

Definition and usage

The multiple attribute specifies that multiple values can be selected for the input field. If this attribute is used, the field can accept multiple values.

Instance:

 

The input file in the above instance can accept multiple file upload fields.

After learning about the multiple attribute of file in html5, we will introduce how to use html5 to upload multiple files.

Instance code:

Html:

 

Php code:

For ($ I = 0; $ I
 
  

Thank you for reading this article. I hope it will help you. thank you for your support for this site!

For more articles about how to use html5 to upload multiple files to an instance, refer to the Chinese php website!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.