definitely agree with brad.. something like:
if($_FILES['userfile']['error']==0) {
move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $upload_path);
} else {
// handle the error
}
additionally you may want to wrap the move_uploaded_file() in an if statement to ensure any error handling on that part.