I spent a long time searching on the Internet trying to figure out how to upload files using php form. I tried a few diferent scripts but only this one worked for me. Also there was one imprortant step that was missed - you have to create and CHMOD "upload" directory to 777.
Create a file and call it supload.php. Erase everything and copy and paste the following script.