The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
When the function is run it just sits there for quite a long time and I have been unable to get any erro messages back,
$uploaddir = '/freeola/users/5/3/srnumber/htdocs';
$destination1 = $uploaddir."/Images/". $_POST['Registration']."-1.jpg";
if (move_uploaded_file ($_POST['userfile1'],$destination1)){};
Help!
Thanks for your post. I have actually sussed the problem and finally got everything working.
Problem was in front of me as you say using $_POST instead of $_FILES but it also was related to me uploading three files cruedly from a single form call where I need to unlink the first tmp_file before moving the next one and so on.
Anyway as I said. Thanks. All part of the learning experience.
The main problem you have is that you are using the wrong global array. PHP stores uploaded file data in the $_FILES array.
Firstly your HTML upload form tag should have
enctype="multipart/form-data" method="post"
see here and the action attribute should point to your PHP process script.
You should then be able to access the uploaded file to save it using the $_FILES array, see here.
PHP.net explains this fully but post back here if you are still stuck.
When the function is run it just sits there for quite a long time and I have been unable to get any erro messages back,
$uploaddir = '/freeola/users/5/3/srnumber/htdocs';
$destination1 = $uploaddir."/Images/". $_POST['Registration']."-1.jpg";
if (move_uploaded_file ($_POST['userfile1'],$destination1)){};
Help!