Hi,
I wanted to make an admin page on my site so I can upload images using web admin interface and so that I don't have to go through FTP upload. Here is my stripped down code for uploading :
But the thing is that it does not work when I click Upload button. The $_POST and $_FILES variables are empty. I checked by using print_r($_POST) and print_r($_FILES). The result is that it prints only Array()
I Googled and found many people facing this problem but could not find any solution. I tested on WAMP on Windows Vista, then tested on Ubuntu but nothing works.
Please suggest me some solutions or other methods of uploading a file through web interface.
Thanks.
I wanted to make an admin page on my site so I can upload images using web admin interface and so that I don't have to go through FTP upload. Here is my stripped down code for uploading :
<form enctype="multipart/form-data" action="index.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Upload : <input name="picture" type="file" /><br /> <input type="submit" value="Upload" /> </form>
But the thing is that it does not work when I click Upload button. The $_POST and $_FILES variables are empty. I checked by using print_r($_POST) and print_r($_FILES). The result is that it prints only Array()
I Googled and found many people facing this problem but could not find any solution. I tested on WAMP on Windows Vista, then tested on Ubuntu but nothing works.
Please suggest me some solutions or other methods of uploading a file through web interface.
Thanks.

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.



Back to top









