Re: Redirect after pdf / file download

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

 



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

>
> Hi,
>
> What you are doing is:
>
> header("Content-Type: application/pdf");
>
> And after that you try to echo some script. But the browser already thinks
> that belongs to the PDF and not to a HTML page.
>
> What I think should work instead of the script part is just:
>
> header('Location: 3.html');
> exit;
>
> But I'm not sure it works.
>
> --
>
> Aschwin Wesselius
>
> 'What you would like to be done to you, do that to the other....'
>

-- 
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