Created
November 7, 2013 14:50
-
-
Save mikedugan/7355831 to your computer and use it in GitHub Desktop.
mutliple upload handler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- source: http://www.apphp.com/index.php?snippet=html-multiple-file-input --> | |
| <form action="upload.php" method="post" enctype="multipart/form-data"> | |
| <input name="upload_files[]" type="file" multiple> | |
| <input type="submit" value="Upload"> | |
| </form> | |
| <?php | |
| // PHP code | |
| that shows how to loop through the data as an array | |
| foreach($_FILES["upload_files"]["name"] as $file){ | |
| echo "<li>".$file."</li>"; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment