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. Link to comment https://forums.phpfreaks.com/topic/55223-solved-one-link-to-change-2-php-targets-please-help/ 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?? Link to comment https://forums.phpfreaks.com/topic/55223-solved-one-link-to-change-2-php-targets-please-help/#findComment-272998 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. Link to comment https://forums.phpfreaks.com/topic/55223-solved-one-link-to-change-2-php-targets-please-help/#findComment-273021 Share on other sites More sharing options...
roleystoner Posted June 12, 2007 Author Share Posted June 12, 2007 yeh? Link to comment https://forums.phpfreaks.com/topic/55223-solved-one-link-to-change-2-php-targets-please-help/#findComment-273143 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 Link to comment https://forums.phpfreaks.com/topic/55223-solved-one-link-to-change-2-php-targets-please-help/#findComment-273147 Share on other sites More sharing options...
roleystoner Posted June 12, 2007 Author Share Posted June 12, 2007 ok. ill give it a try. Link to comment https://forums.phpfreaks.com/topic/55223-solved-one-link-to-change-2-php-targets-please-help/#findComment-273157 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.