I'm using a simple form to upload an image and save it into a folder called "images". Here's the form, which is embedded in php.
echo "
<form method = 'POST' action = 'uploadPic.php'>
<input type = 'hidden' name = 'mvID' value = '$mvID' />
<input type = 'file' name = 'pic' />
<input type = 'submit' value = 'Upload' />
</form>
";
Where $mvID is an integer.
Here's the upload code:
move_uploaded_file($_FILES['pic']['tmp_name'], "images/" . $_POST['mvID'] . ".jpg");
I want the file to be saved in the folder "images" as $mvID.jpg. Don't worry about file restrictions, I'll take care of that later.
Unfortunately, this doesn't save any files in the folder. It doesn't do anything, like report any errors.
Any help would be appreciated.