Skip to content

Instantly share code, notes, and snippets.

@suissa
Created June 19, 2011 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suissa/1034627 to your computer and use it in GitHub Desktop.
Save suissa/1034627 to your computer and use it in GitHub Desktop.
html multiple upload files
<form method="post" action="upload.php" enctype="multipart/form-data">
<input name='uploads[]' type="file" multiple>
<input type="submit" value="Send">
</form>
<?php
/*upload*/
foreach ($_FILES['uploads']['name'] as $filename) {
echo '<li>' . $filename . '</li>';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment