Page 1 of 1

Headers: Force Save

Posted: Wed Feb 04, 2009 3:36 pm
by lldcrb328
Hi All..

I'm using the following script to give the option to either "SAVE" or "OPEN" a file, via headers() function.
I'd like disable the "OPEN" option -- does anybody know if this is possible? So that the script only offers the option of saving the document...


Thanks for all your help !

Re: Headers: Force Save

Posted: Wed Feb 04, 2009 3:53 pm
by requinix
Not possible.

In general you can't force the browser to do anything. Save a file, open a file, print a document...

Re: Headers: Force Save

Posted: Wed Feb 04, 2009 5:18 pm
by pickle
The best you can do is pop up that box asking the user what to do.