Re: Redirect after pdf / file download

From: Date: Thu, 12 Jun 2008 15:56:56 +0000
Subject: Re: Redirect after pdf / file download
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-275286@lists.php.net to get a copy of this message
On Jun 12, 2008, at 8:32 AM, Bastien Koert wrote:
On Thu, Jun 12, 2008 at 7:46 AM, Yashesh Bhatia <yasheshb@gmail.com> wrote:
What about doing it the other way ... submitting the page to a script that calls on the pdf creation, yet doesnt leave this script - then proceed to redirect when that script (pdf) has been completed? S
steven: the steps u'r suggesting are 1 - submit form (1.html) to script (2.php) 2 - 2.php generates the pdf but does not give it for download 3 - after generating the pdf , 2.php then redirects to 3.html.. so where does the download happen ? in 3.html ? thx. yashesh
Force the download thru a new window or a frame inside the main window. Then you can redirect the main window to where you need it
Frames = Bad! (and that's not an assignment ;) As Richard provided the link (http://www.w3.org/TR/2008/WD-html5-diff-20080610/) in a different thread, this comes straight from the article about HTML 5: "The following elements are not in HTML 5 because their usage affected usability and accessibility for the end user in a negative way: * frame * frameset * noframes" I know we're not in HTML5 yet, but might as well prepare. Sorry to go a bit off topic, but I had to throw that out. =D ~Philip

« previous php.general (#275286) next »