Page 1 of 1

save file dynamically

Posted: Thu May 05, 2005 8:00 am
by oopson
hi

i want php to show the popup box to ask the user to save or view the file instead of using the standard html link which needs the user to right click then save the file.
an example of what i want is in phpmyadmin when you want to export the DB you can check the save file box and it will show that popup window i am talking about

please help
regards

Posted: Thu May 05, 2005 8:04 am
by timvw
as you will find in many previous discussions, there is no way to do this, because the only one who controls his browser is the user himself.

but a little websearch on "force-download" will give you plenty of more-or-less working solutions...

Posted: Thu May 05, 2005 8:14 am
by oopson