sjc_unique
08-24-2002, 06:25 PM
right, set up (thanks to you lot here) a function whereby when a link is clicked a <td> shows the link. below is the code:
<?php
if(!isset($_GET['aVar']))$page="noinfo";
else $page=$_GET['aVar'];
include("$page.php");
?>
then i went to include another <td> for the purpose of placing any link from the above $page.php. Below is the code:
<?php
if(!isset($_GET['aVar1']))$page="noinfo";
else $page=$_GET['aVar1'];
include("$page.php");
?>
HOWEVER, when i click a link to appear in the second <td> the contents of the first <td> disappear. I know that this is because of the line of code:
if(!isset($_GET['aVar']))$page="noinfo";
How can i change that first set of code so that it still displays whilst the second <td> has include()d the file???
Thanks
SJC
<?php
if(!isset($_GET['aVar']))$page="noinfo";
else $page=$_GET['aVar'];
include("$page.php");
?>
then i went to include another <td> for the purpose of placing any link from the above $page.php. Below is the code:
<?php
if(!isset($_GET['aVar1']))$page="noinfo";
else $page=$_GET['aVar1'];
include("$page.php");
?>
HOWEVER, when i click a link to appear in the second <td> the contents of the first <td> disappear. I know that this is because of the line of code:
if(!isset($_GET['aVar']))$page="noinfo";
How can i change that first set of code so that it still displays whilst the second <td> has include()d the file???
Thanks
SJC