if ($do == "uploaded" ) { if ($_FILES['image']['name']) { $ext = substr(basename($_FILES['image']['name']),-3); $file_name = $ID . "." . $ext; $target_path = "/data/images/$file_name"; move_uploaded_file($_FILES['image']['tmp_name'], $target_path); print_r($_FILES); ?>

Image upload completed successfully. Return to the Admin Page

Error

There was an error uploading your file. Please hit your back button and try again.