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. In fact it starts downloading.
The only thing is that it doesn't catch the correct
file name (though it downloads the actual daFile).

Cheers,
r.
--- Jason Wong <[EMAIL PROTECTED]> wrote:
> On Friday 04 April 2003 13:51, b b wrote:
> 
> >  Why would the $daFile in the following code be
> > resolved to "". I am passing it via the url.
> >  <?
> >     session_start();
> >     if($_SESSION['isValidSession'] == 'Y'){
> >             $daFile = $_GET['daFile'];
> 
>  - What URL are you using?
>  - Have you taken case into account?
>  - What does print_r($_GET) give you?
> 
> -- 
> Jason Wong -> Gremlins Associates ->
> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet
> Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> Before borrowing money from a friend, decide which
> you need more.
>               -- Addison H. Hallock
> */
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to