Ændre kode så det virker til register globals=off
Jeg har en simpel side i php som virker fint med globals=on, men den virker ikke med globals off.Hvordan får jeg den til at virke?
Siden er simpel og består kun af en index fil. Hver gang man trykker på et link hentes nyt indhold ind på siden.
Når globals er off, sker der ikke noget ved link tryk... hvad skal jeg ændre?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<? include "meta.php" ?>
<link href="style.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="http://testside.dk/favicon.ico" />
</head>
<table class="sortboks2" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="750" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><a href="<?=$PHP_SELF;?>?side=start"><img src="grafik/topbar.gif" width="750" border="0" alt="testside.dk"></a></td>
</tr>
</table>
<table width="750" border="0" cellpadding="0" cellspacing="0" bgcolor="#999999">
<tr>
<td width="160" height="15" class="boksT"> </td>
<td width="20" class="boksT"> </td>
<td width="262" class="boksT"><strong><font size="1" > Location:
>>
<? if (@$side) {
echo "$side";
}
else {
echo "start";
} ?>
</font></strong>
<td width="288" class="boksT"> <p align="right"><strong><font size="1">
<? include "funktion/dagDtoAAr.php" ?>
</font></strong> </p>
<td width="20" class="boksT"> </td>
</tr>
<tr>
<td width="160" height="15" bgcolor="#0000ff" class="rightborderM"> </td>
<td width="20" height="15" bgcolor="#ffffff"> </td>
<td width="262" bgcolor="#ffffff" class="bottomborder"> </td>
<td width="288" class="bottomborder" bgcolor="#ffffff">
<td width="20" bgcolor="#ffffff">
</tr>
</table>
<table width="750" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
<tr>
<td width="160" valign="top" bgcolor="#0000ff" class="rightborderM">
<? include "menu.php"; ?>
</td>
<td width="20" valign="top" bgcolor="#ffffff" class="rightborder"> </td>
<td width="550" valign="top" bgcolor="#FFFFFF"><? if(!isset($side)) $side="start"; include($side.".php"); ?></td>
<td width="20" bgcolor="#ffffff" class="leftborder"> </td>
</tr>
</table>
<table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="160" height="15" bgcolor="#0000ff" class="rightborder2"> </td>
<td width="20" bgcolor="#ffffff"> </td>
<td width="262" bgcolor="#ffffff" class="topborder"> </td>
<td width="288" bgcolor="#ffffff" class="topborder"> </td>
<td width="20" bgcolor="#ffffff"> </td>
</tr>
<tr>
<td width="160" height="15" class="boksB"> </td>
<td width="20" class="boksB"> </td>
<td width="262" class="boksB"><div align="right"><font size="1">Copyright ©</font></div></td>
<td width="288" class="boksB"><div align="left"><font size="1">2002-<? echo date("Y") ?></font></div></td>
<td width="20" class="boksB"> </td>
</tr>
</table>
<table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="grafik/bundbar.gif" alt=""></td>
</tr>
</table>
</table>
<? include "funktion/god-hils.php"; ?>
</body>
</html>