roleystoner Posted June 12, 2007 Share Posted June 12, 2007 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 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. Quote Link to comment Share on other sites More sharing options...
only one Posted June 12, 2007 Share Posted June 12, 2007 i cant follow u.. whats your problem?? Quote Link to comment Share on other sites More sharing options...
roleystoner Posted June 12, 2007 Author Share Posted June 12, 2007 I am trying to have the one link load content in 2 different areas... so the one link change the content of 2 areas specified. help needed. Quote Link to comment Share on other sites More sharing options...
roleystoner Posted June 12, 2007 Author Share Posted June 12, 2007 yeh? Quote Link to comment Share on other sites More sharing options...
Wuhtzu Posted June 12, 2007 Share Posted June 12, 2007 <a href="?area1=sessions&area2=something&area3=somethingelse"> Then you can get all the actions: Action in area1: $_GET['area1']; Action in area2: $_GET['area2']; ect Quote Link to comment Share on other sites More sharing options...
roleystoner Posted June 12, 2007 Author Share Posted June 12, 2007 ok. ill give it a try. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.