I'm using HTML and PHP to upload a file...I want the name of th text file to be written to a text file. I'm running into a problem where instead of writing the name, such as id.txt, it writes c:\diruploadedfrom\id.txt . Is there a way to get around this? Basically now I have the name of the upload part of the form saying something like name=userfile, and then i write out userfile...but it includes the name of the user who uploads directory that they upload from....