PDA

View Full Version : simple q


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

sjc_unique
08-24-2002, 06:34 PM
ok, just worked out the problem....might make it easier to recieve help.....

when the first link is clicked the url becomes:


then when i click the next link it becomes


what i need is:


Any easier? or just stated the obvious? lol

Thanks

SJC

URL REMOVED BY MODERATOR

sjc_unique
08-24-2002, 06:45 PM
ok, getting closer....someone please help.

Have got the following code in place:
<?php
if(!isset($_GET['aVar']))$page="noinfo";
else $page=$_GET['aVar'];
include("$page.php");
?>
<?php
if(!isset($_GET['aVar1']))$page="noinfo";
else $page=$_GET['aVar'];
include("$page.php");
?>
</td>
</tr>
<tr>
<td>
<?php
if(!isset($_GET['aVar1']))$page1="noinfo";
else $page1=$_GET['aVar1'];
include("$page1.php");
?>

Now i am getting the second <td> as i should be, and the First <td> is also appearing, except with an error message saying there is no specified file. So i am getting closer.....any help??

Thanks

SJC

sjc_unique
08-24-2002, 06:54 PM
DONT WORRY PEOPLE, STUNTBOY HELPED ME.

just need to change the link to


whoops!!

thanks anyway.

SJC

URL REMOVED BY MODERATOR

Spookster
08-24-2002, 08:03 PM
SJC this is your first and last warning. If you ever post a link to an adult site in our forums again you will be banned. This is clearly stated in our forum rules which you agreed to when you registered to use our forums.


http://www.codingforums.com/rules.htm

Read them again.

sjc_unique
08-24-2002, 08:05 PM
WHOOPS. Sorry. i put it the three X's because i didnt want to link to my site (as it's still in early stages). i didnt even think they would be an adult site.

So sorry.

SJC