Hi all,

Just wondering if anyone can tell me what is wrong with the following code, if anything. I can enter details into the database just fine using my PHP script, but when it comes to file uploading I get an error. Thanks for any help! See my post below if you want to see more of the code, and my post below that if you want to see the full code (although it has been modified as suggested in some of the replies).
Cheers,

-XGuy.

PHP Code:
  if (copy($userfile,"../documents/articles/$userfile_name"))
                 echo(
"<B> File successfully uploaded</B>");