Generally, I would do something like
Code:
<?php
if (!(file_exists($_FILES['uploadedfile']['tmp_name']))) {
$error .= "Please try again, I didn't get a file. ";
} else {
// do something with the file
header("Location: /thanks_for_your_upload.html");
exit;
}
?>
Upload your file:
<form method="post" enctype="multipart/form-data">
<input name="uploadedfile" type="file">
<input type="submit" name="submit" value="Upload">
</form>
Of course, you might want other input fields, insert records into a database, etc, but, the very basic framework you need to upload an image and process it is right there.