Re: Redirect to a new page?
| From: | Beauford.2002 | Date: | Thu, 13 Mar 2003 19:48:55 +0000 |
| Subject: | Re: Redirect to a new page? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139585@lists.php.net to get a copy of this message | ||
Figured it out....
echo "<Script Lang=javascript>";
echo "window.location.href = 'viewpostats.php'";
echo "</script>";
----- Original Message -----
From: "Leif K-Brooks" <eurleif@buyer-brokerage.com>
To: "Beauford.2002" <beauford.2002@rogers.com>
Cc: <php-general@lists.php.net>
Sent: Thursday, March 13, 2003 2:20 PM
Subject: Re: [PHP] Redirect to a new page?
> if(something){
> header("Location: {$_SERVER['HTTP_HOST']}/thispage.php");
> }else{
> header("Location: {$_SERVER['HTTP_HOST']}/thatpage.php");
> }
>
> Beauford.2002 wrote:
>
> >Hi,
> >
> >I have searched around for hours on this and nothing seems to work. I
want
> >simply to do this....
> >
> >if yes - goto thispage.php
> >
> >if no - goto thatpage.php
> >
> >Thanks
> >
> >
> >
> >
> >
>
> --
> The above message is encrypted with double rot13 encoding. Any
unauthorized attempt to decrypt it will be prosecuted to the full extent of
the law.
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>