index.php
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 </head> 7 <body> 8 <form action="upload.php" method="post" enctype="multipart/form-data"> 9 <input type="file" name="name1"> 10 <input type="file" name="name2"> 11 <br> 12 <br> 13 <input type="submit"> 14 </form> 15 16 </body> 17 </html>
upload.php
1 <?php 2 echo "<pre>"; 3 print_r($_FILES); 4 echo "</pre>"; 5 ?>