note 48599 deleted from language.control-structures by tularis
| From: | tularis@php.net | Date: | Sat, 01 Jan 2005 00:44:44 +0000 |
| Subject: | note 48599 deleted from language.control-structures by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-82526@lists.php.net to get a copy of this message | ||
Note Submitter: job:113
----
I put together this in order to mask my links, passing the query from another page in a link
(go.php?id=1) but everytime, it goes directly to the last value.. even if I pass id=1 it takes me to
(in this example) to google... Any light?... please!!!
<?php
if ($id = "1"){$link = "http://altavista.com";}
if ($id = "2"){$link = "http://yahoo.com";}
if ($id = "3"){$link = "http://google.com";}
header("Location: $link");
exit();
?>
----
Reason: bad code