Thread: php?id=
View Single Post
  #4  
Old 03-01-2005, 03:59 PM
JonM is offline JonM
Registered User

Join Date: Jun 2004
Posts: 2,156

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 ,
Reply With Quote