Jump to content

Creating one link with 2 targets.


roleystoner

Recommended Posts

Does anyone know how to have the one php link "?do=link" target 2 php tags and change the content of them both.

 

i basically have a 3 column layout, the left hand nav column targets the centre for my main content with the right hand side having sub topics etc.. i want to be able to click a link on the left hand side and change both the content for the centre and right hand side.

 

my main content page contains

<td>

<?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"); [column].target == "navigation.php"; }

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

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

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

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

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

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

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

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

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

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

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

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

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

elseif($_GET['do'] == "archives"){ include("./cutenews.1.4.5/cutenews/show_archives.php"); }

else{ $category = "1"; include("./cutenews.1.4.5/cutenews/show_news.php"); }

 

?>

</td>

 

with the right hand column having:

<?php include("indexcolumn.php"); ?>

 

and the links:

<a href="?do=sessions" class="menu" title="Sessions">Sessions</a> etc..

 

now what i want to do is have the links target both the content of the right indexcolumn and the main for the given area, eg: if i click the sessions link the main content for the sessions will load and the sub topics regarding this section will load on the right. how could i do this in php?

 

Thanks. May be a bit confusing  :P

Link to comment
https://forums.phpfreaks.com/topic/55058-creating-one-link-with-2-targets/
Share on other sites

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.