Mário Gamito wrote:
> Hi,
> 
>> that's what I said before. you echo out some html before the file
>> headers. that will never work.
>> remove the echo statement on line 14 and you should be okay
> But i need the line
> 
> echo "<a href=\"products-testudio.php?file=testudio.pdf\"",             
>            " rel=\"external\">Download TESTUDIO flyer</a>";
> 
> to display the link for download!!!
> 
> How can i sove this puzzle ?

by reading the freaking replies that you get?!? :-), I did give you
the answer to this in the rewritten code I offered. (granted
there is a typo in that code, but I figure your capable enough
to find the superfluous parentheses and remove it)

I see you did take on some of what I proposed - but notice
that in your latest bit of code the echo statement that outputs
the link when there is an 'error' is *inside* the 'if (isset($_GET['FILE']))'
block (which is not the case i the example I sent)

> 
> Full code follows my signature.
> 
> Thanks for all your help guys.
> 
> Warm Regards,

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

Reply via email to