Is something like this what you are looking for?
<?PHP
$uploaddir = "uploads"; // must be chmoded to 777
if ($File)
{
if (copy ($File, "$uploaddir/$File_name"))
{
print ("File Name: $File_name<br/><br/>\n"); //Displays the file name of the file you are uploading
print ("File Size: $File_size<br/><br/>\n"); //Displays the file size of the file you are uploading
print ("Your file was successfully uploaded!<br/><br/>\n");
}
else
{
print ("Your file could not be uploaded.");
}
unlink ($File);
}
print ("Upload a file to the server");
print ("<form action=\"upload.php\" method=\"post\" enctype=\"multipart/form-data\">\n");
print ("File: <input type=file name=\"File\" Size=20><br/>\n");
print ("<input type=submit name=\"submit\" value=\"Upload File\"></form>\n");
?>