Re: Redirect after pdf / file download

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jun 12, 2008, at 8:32 AM, Bastien Koert wrote:

On Thu, Jun 12, 2008 at 7:46 AM, Yashesh Bhatia <yasheshb@xxxxxxxxx> 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux