well there's a few ways...if u know php this will be easier lol...
1-
<?
if($page=="page1"){
do actions here
}
elseif($page=="page2")
{
do actions here
}
else
{
do actions here
}
?>
2-
<?
switch($page)
{
case page1
yourfunctionor stuff here
break;
case page2
yourfunction or stuff here
break;
case page3
yourfunction or stuff here
break;
}
?>
then put in your link index.php?page=page1 or whatever, and it doesn't have to be index.php , it could be pages.php or whatver ,