We're going to create a form which will upload a a selected file from a users computer, and place it in a directory. A quick tutorial, which can be used with other scripts.

Create a document called select.html, and insert the follwoing...

<form action="upload.php" method="post" ENCTYPE="multipart/form-data">
<input type="file" size="60" name="jpgimage">
<input type="submit" value="Upload File">
</form>
That is our form, for which the user will be able to select the file he/she wants to upload.

Now we make the document which handles the upload process. Create a new document named upload.php and insert the following...

<?
//the directory to where the file is uploaded to...
copy($jpgimage,"full/path/files/$jpgimage_name");
unlink($jpgimage);
?>
Make sure you have the full path inserted, so the script knows where to upload to. Upload select.html and upload.php, then create a folder named 'files', and CHMOD it to 777. Then you're done!