- <?php
- if ($_FILES) {
- echo "<pre>";
- echo "</pre>";
- }
- ?>
- <!-- The data encoding type, enctype, MUST be specified as below -->
- <form enctype="multipart/form-data" action="?" method="POST">
- <!-- Name of input element determines name in $_FILES array -->
- Send this file: <input name="userfile" type="file" />
- <br/>
- <input type="submit" value="Send File" />
- </form>
PHP File Upload Test
Posted by HellFire on Tue 24th Apr 2012 21:49
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.