On Friday 04 April 2003 15:29, b b wrote: > It would be: > <a > href="downloadFile.php?daFile=path/fileName">path/fileName</a> > > I tried to print the _GET['daFile'] however if I am > using the header function in the same file then it > won't print a thing.
Well, disable the file downloading section for the moment. > In fact it starts downloading. > The only thing is that it doesn't catch the correct > file name (though it downloads the actual daFile). I don't quite understand this bit -- could you clarify? One thing that you should do when passing values through the URL is to urlencode() them. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php