Forum Moderators: mack
Thx...:¦
Okay. i used query strings and a switch statement. the query string goes the hyper link like : <href="path/file.php?page=somevalue">
Then i put the switch in the div where i want the file included.
CODE FRAGMENT :
<div class="centerStrip" align="center">
<?php
switch($_GET['page']){
case 'somevalue':
include("somefile.inc");
break;
case 'othervalue':
include("anotherfile.inc");
break;
case 'yetanothervalue':
include("someotherfile.inc");
break;
default:
include('welcome.inc');
break;
}
?>
</div>
i used .inc extension for the included files.
You can use the switch in any <div>Area</div> where you want text to change depending on the link clicked. I included small text files with a little intro to the topic clicked on.
- silk -