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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.