Page 2 of 2

Posted: Mon May 24, 2004 9:26 am
by ljCharlie
Okay, here's another thing I have tried. I tried putting the header calls to the very top before any output. The problem is when I click on the button to query my database and then give me the link to the .csv file to download, instead of showing me the .php page with the link for me to download, the browser automatically popup with window for me to either download the .php page or save it. Is this normal?

ljCharlie

Posted: Mon May 24, 2004 9:27 am
by feyd
that's what Bech100's code would do, yes.

Posted: Mon May 24, 2004 9:34 am
by ljCharlie
The way I understand Bech100's code is that I don't actually download the whole .php page but only the .csv file as he has shown with the second link. So you're saying his code don't provide me with the actual .csv file link to be downloaded but only the page that contains the echo of the data quried?

Well, if that's the case, I don't think that is what I'm looking for. I want to provide the user a link to actually download a .csv file.

ljCharlie

Posted: Mon May 24, 2004 1:07 pm
by magicrobotmonkey
it will be indistiguishable to the user!