// ==============
// Configuration
// ==============
$uploaddir = "/home/.sites/107/site221/web/assests/uploadpics/";
// Where you want the files to upload to
//Important: Make sure this folders permissions (CHMOD) is 0777!
// ==============
// Upload Part
// ==============
if(is_uploaded_file($_FILES['bigpic']['tmp_name']))
{
$uploaded = move_uploaded_file($_FILES['bigpic']['tmp_name'],$uploaddir.'/'.$_FILES['bigpic']['name']);
if ($uploaded) {
echo "<font size=3 face=Arial><b>".$_FILES['bigpic']['name']." </b>as Been Uploaded</font>";
} else {
echo "Record ".$_FILES['bigpic']['name']." added<br>";
}
} else {
echo "<font size=3 face=Arial><b><p>Welcome!</b><br></font><font size=1 face=Arial>vm-play.net picture submittion page!</p></font>";
}
When clicking on submit, posting to itself, the PHP does nothing but reproduce the last else statement.