Created
December 30, 2012 07:22
-
-
Save ceme/4411409 to your computer and use it in GitHub Desktop.
PHP Tip: Uploading Multiple Files In HTML5
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
<!DOCTYPE html> | |
<html lang="en-us"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>HTML5 Multiple File Upload</title> | |
<link rel="stylesheet" href="s.css" media="screen"> | |
<style media="screen"></style> | |
</head> | |
<body> | |
<form action="processor.php" method="post" enctype="multipart/form-data"> | |
<input type="file" value="" name="upload[]" multiple> | |
<button type="submit">Upload!</button> | |
</form> | |
<script></script> | |
</body> | |
</html> | |
<pre> | |
<?php | |
print_r( $_FILES ); | |
?> | |
</pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment