Sure thing.
Here is the html code from the webpage where the upload is done:
echo "<center>";
echo "<FORM METHOD=POST ENCTYPE='multipart/form-data' ACTION=fileup.phtml>";
echo "<strong>File to upload</strong><p><INPUT TYPE=FILE NAME='upload'> <p>";
echo "<p>Brief Description<br><input type='text' name='desc' size='40'></p>";
echo "<p>Estimated Value<br><input type='text' name='EstValue' size='10'></p>";
echo "<p>Expiration Date (yyyy-mm-dd)<br><input type='text' name='expire' size='10'></p>";
echo "<p>Email address: <br> <input type='text' name='BuyerName' size='40'></p>";
echo "<p>Your Password<br> <input type='text' name='Password' size='20'></p>";
echo "<input type='hidden' name='CategoryName' value='$CategoryName'>";
echo "<input type='hidden' name='SubCategoryName' value='$SubCategoryName'>";
echo "<INPUT TYPE=SUBMIT VALUE='Upload File'>";
echo "</center>";
And here is the code that handles the upload (the phtml that is in the action tag from the html)
$fo=fopen($upload,"rb");
$fr=fread($fo,10000000);
$doc=addslashes($fr);
$myfilename=uniqid("").".doc";
$myfile=fopen ("/httpd/virtwebs/www.connectrfp.com/public_html/files/$myfilename","w+b");
$writefile=fwrite ($myfile,$doc);
$closemyfile=fclose ($myfile);