Hello folks,
I'm working on a script to upload images to a folder on my server (The folder is determined by the user via the form, by the way). I get no errors when I run the script, but the image isn't appearing anywhere on my server.
Here is the form page:
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<form method="POST" action="admin_image.php">
<p align="center">
<img border="0" src="images/header_uploadimage.jpg" width="452" height="30"><br>
<br>
<font face="Tahoma">
<input name="uploaded" type="file" /><font size="2"><br>
</font>
<input type="radio" value="classes" name="folder" checked><font size="2">Class
| </font>
<input type="radio" value="machines" name="folder"><font size="2">Machine</font></font><br>
<br>
<input type="submit" value="Submit" name="B1"></p>
</form>
</td>
</tr>
</table>
And here is the script to add it to the server:
<?php
$folder = $_POST['folder'];
move_uploaded_file ($_FILES['uploaded'] ['tmp_name'],
"$folder {$_FILES['uploaded'] ['name']}")
?>
ANY help would be appreciated cause I really have no idea why it's not working.
Thanks,
~ Jon "Reality15" Roost