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

Reply via email to