View Single Post
Old 2007-01-28, 05:19 PM   #7
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
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.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote