Re: register_globals
| From: | Justin French | Date: | Wed, 29 Jan 2003 00:11:24 +0000 |
| Subject: | Re: register_globals | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133450@lists.php.net to get a copy of this message | ||
on 29/01/03 6:41 AM, Kiswa (Kiswa@telia.com) wrote:
change If($id==1){ to If($_GET['id']==1){
or put this line near the top of your script:
$id = $_GET['id'];
or, a little more anal:
if(isset($_GET['id'])) { $id = $_GET['id']; }
Justin
> <font size="2"><a href="left.php?id=1"
> target="_self">Finansiering</a><BR>
> <?
> If($id==1){
> echo "<a href=info/leas.htm target=\"mainFrame\"><font
> color=\"#00CCCC\">Leasing</font></a><BR>
> <a href=info/avb.htm target=\"mainFrame\"><font
> color=\"#00CCCC\">Räntefri
> avbet.</font></a><BR>
> <a href=info/stul.htm target=\"mainFrame\"><font
> color=\"#00CCCC\">Studentlån</font></a><BR>";
> };
> ?>
>
>