Re: redirecting the browser
| From: | Mak | Date: | Wed, 24 Oct 2001 06:53:42 +0000 |
| Subject: | Re: redirecting the browser | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-72054@lists.php.net to get a copy of this message | ||
Hi, you can use Javascript as follows:
<?php
// your code here...
print("<script>document.location.href='somepage.php';</script>");
//continue yr code...
?>
Hope it helps.
- Mak
----- Original Message -----
From: "Ozgur Demirtas" <demirtas@it.uts.edu.au>
To: <php-general@lists.php.net>
Sent: Wednesday, October 24, 2001 2:47 PM
Subject: [PHP] redirecting the browser
> Hi all,
>
> I have a PHP script and at one point of the script I am trying to redirect
> my browser to a certaion page. I can't seem to find an easy way of doing
> this. header() call is so much of a problem. There is no such function
like
> redirect("...") as in ASP?
>
> PS: I am using PHP version 3.09 as an Apache module on Solaris.
>
> Thanks!
> Ozgur
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com