Jump to content

[SOLVED] One Link to change 2 php targets - Please Help


roleystoner

Recommended Posts

Does anyone know a script that can change the content of 2 given php tags within my layout.

 

i have a 3 column layout

  • a left navigation
  • a center content area
  • a right sub heading section

 

now what i want to do is have a navigation link change the content of both the middle and right sections.

 

anyone have some linking script/system/setup that could do thi. Cheers  :P

 

At the moment i have standard php links - <a href="?do=sessions" class="menu" title="Sessions">Sessions</a>

 

with the main content having -

<?PHP

 

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  Include All Pages Here.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

 

if($_POST['do'] == "search" or $_GET['dosearch'] == "yes"){ $subaction = "search"; $dosearch = "yes"; include("./cutenews.1.4.5/cutenews/search.php"); }

elseif($_GET['do'] == "history"){ $category = "2"; include("./cutenews.1.4.5/cutenews/show_news.php"); }

elseif($_GET['do'] == "sponsors"){ $category = "3"; include("./cutenews.1.4.5/cutenews/show_news.php"); }

elseif($_GET['do'] == "sessions"){ include("./sessions.php"); }

..............

 

and the right content area having - <?php include("rightcolumn.php"); ?>

 

all tags are within tables.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.