Jump to content

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

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.