Here is the code to recieve a file, you will have to figure out how to integrate it into your web page, in this case i am storing it into a MySql DB
<?php
$link_id = mysql_connect("localhost","xxx","xxx");
if (!$link_id)
{
mysql_close($link_id);
die("Could not connect to db");
}
//read the image file in
$data = addslashes(fread(fopen($file_data, "r"),filesize($file_data)));
if ($mytype != "")
{
//$body = str_replace("\n","<BR>",$body);
$q = "INSERT INTO adds VALUES('','$myurl','$data','$mytype')";
$result = mysql_db_query("xxx",$q,$link_id);
$numadd = mysql_affected_rows ($link_id);
mysql_close($link_id);
}
?>
<BODY>
rows affected: <?php echo $numadd; ?>
</BODY>