Re: How to jump to a new page?
| From: | Cobra Commander | Date: | Tue, 05 Sep 2000 19:58:25 +0000 |
| Subject: | Re: How to jump to a new page? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15369@lists.php.net to get a copy of this message | ||
If you already sent to the client, you may need some Javascript, that of
which I do not know much of
--
----------
The secret Cobra Base - http://cobracommand.net
"Jesper Juhl" <juhl@eisenstein.dk> wrote in message
news:39B54BC5.EE2BC9EC@eisenstein.dk...
> Wee Chua wrote:
> >
> > Hi all,
> > How could jump to a new page in my if statement, such as
> >
> > if (myrow["username"] == "")
> > --> then jump to a new page;
> > else
> > --> then jump to a another page;
> >
> > something like that. Please help? Thanks.
> >
> > Calvin
> >
>
> if (myrow["username"] == "") {
> header("Location: http://www.foo.com/");
> } else {
> header("Location: http://www.bar.com/");
> }
>
>
> Regards,
> Jesper Juhl
> juhl@eisenstein.dk
>
> --
> 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
>