Re: Redirect after pdf / file download
| From: | Steven Macintyre | Date: | Thu, 12 Jun 2008 11:22:02 +0000 |
| Subject: | Re: Redirect after pdf / file download | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275263@lists.php.net to get a copy of this message | ||
On Thu, 2008-06-12 at 16:27 +0530, Yashesh Bhatia wrote:
> Aschwin:
>
> Hi i tried
>
> ------------------------------------------------------------------------------------------
> //echo '<script type="text/javascript">';
> //echo 'window.location.href="3.html";';
> //echo '</script>';
> header("Location: 3.html");
> exit;
> ------------------------------
> but that did not work :(.
>
> thanks for the tip.
>
> yashesh bhatia
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