file.htm
<form method="post" action="file.php">
<input type="file" name="my_file">
<input type="Submit" value="Upload"?
</form>
file.php
if (isset ($_FILES['my_file'])) {
move_uploaded_file ($_FILES['my_file']['tmp_name'], $_FILES['name']);
}
These two files handle the file upload and save it on the server. Validation can be done by checking the file size and type.
Hope this helps, Adam