Re: File Download?
| From: | Jason Wong | Date: | Fri, 04 Apr 2003 08:31:09 +0000 |
| Subject: | Re: File Download? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142273@lists.php.net to get a copy of this message | ||
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.