rendered paste bodyif ($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); ?> <h3>Image upload completed successfully.</he> <a href="admin.php?p=items&sort=Owner">Return to the Admin Page</a> <? } else {?> <h1>Error</h1> <p>There was an error uploading your file. Please hit your back button and try again.</p> <? } }