Re: If statement leading to another php page
| From: | Jason Wong | Date: | Tue, 30 Apr 2002 04:40:18 +0000 |
| Subject: | Re: If statement leading to another php page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95313@lists.php.net to get a copy of this message | ||
On Tuesday 30 April 2002 12:36, baldey_uk wrote:
> Hello all,
>
> How can i force a transfer to another php page from an if statement?
>
> I have been trying:
>
> if (condition){
>
> echo "<A HREF=3D"www.link.com">Link</A>";
>
> }
> else {
>
> something else
> }
if (something) {
header("Location: http://www.somewhere.com"); }
else {
whatever;
}
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Use an accordion. Go to jail.
-- KFOG, San Francisco
*/