Home  >  Article  >  Backend Development  >  PHP multiple file upload analysis_PHP tutorial

PHP multiple file upload analysis_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:05:57772browse

Summary of personal understanding of

PHP multi-file upload

Multiple file upload is a basic application in PHP. I would like to introduce the relevant knowledge to you in detail. My level is limited, so please give me more opinions. Let’s make progress together.
You should add [] after the name in the FILE type of the input tag of the uploaded file HTML. The function is to create an array in the HTML to PHP. For example, the name is pictures, and the name of the multiple file reference is pictures[]. The example is as follows:
<code id="code0"><br><font face="仿宋_GB2312"><form action="upload.php" method="post" enctype="multipart/form-data"><br><p><br><input type="file" name="pictures[]" /><br /><br><input type="file" name="pictures[]" /><br /><br><input type="file" name="pictures[]" /><br /><br><input type="submit" value="上传" /><br></p><br></form> //手册中实例。</font>



< ;br />



//Examples in the manual. The method manual for using HTML files to create arrays explains this:

To make your
result be sent to the PHP script as an array, you need to set the or