KarveR,
Just wanted to let you (and anyone else who's interested) know that I've got around this problem by using a combination of our codes.
The following code is now working fine. It'll read from the database, throw all the data into a string ($file), and then prompt the user to download...
Cheer KarveR - bit of a schoolboy error from me there I'm afraid!
Your code seems to do exactly what I need.....except....
I can't seem to get the "Save As" dialogue box to populate with the $_GET[FileName] string. It always populates the filename box with the page name, ie...
Does anyone know how to get the standard Windows "Save As..." dialogue box to pop up?
I'm using PHP to create a comma seperated file, generated from a MySQL database. I now need to prompt the user to save this file to a location on their computer.
I can force the file onto a users...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.