Page 1 of 1

Download pdf and then change location with header("...

Posted: Mon Nov 10, 2008 9:13 am
by spruce
Hi,

I have a php page that processes a post variable and then determines pdf for a user to download. Once the correct pdf has been established
I want to open a new window with the pdf in it(or a save dialog box for same) and at the same time send the current window back to a generic page.

I was messing around with javascript but my solution doesnt work in safari. I would prefer a php solution anyway.

Anyone got any ideas?

Help greatly appreciated.

Re: Download pdf and then change location with header("...

Posted: Mon Nov 10, 2008 9:22 am
by papa
Well it's not something you can do with PHP. JS is the way to go.