/ Published in: PHP
Expand |
Embed | Plain Text
<?php if ($_GET['image'] == "1") { $uploaddir = '../images/'; echo "File is valid, and was successfully uploaded.\n"; } } ?> <form enctype="multipart/form-data" action="?image=1" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="512000" /> <input name="image" type="file" /> <input type="submit" value="Upload Image" /> </form>
You need to login to post a comment.
