Actually Janety, if you use a form with a file input it will take care of the little browse for file button and allow the suer to comb their harddrive for a file to upload.
<form action="" method="post" enctype="multipart/formdata">
<input type="file" name="userfile">
</form>
After submission PHP stores the uploaded file to a temp directoty set in the php.ini file. You must then copy the new file to a different location on your server.
If your form file input name was userfile, then after submission if the upload was successful you will have three new variables
$userfile_name // this holds just the file name with no path
$userfile_size // the size of the uploaded file
$userfile_type // the type of the file
Now you just need to use the copy() function to copy the file to a new location. First you want to set up a path
What I do here is set up the path to where I want to store the uploaded file with a the new name attached to the end like so:
$uploaddir = "/www/uploads/". $userfile_name;
then I use
copy($userfile, $uploaddir);
This will copy the uploaded file to a new file named by $uploaddir.
Hope that helps, keep in mind this is barebones and doesn't include error checking