i recently found some code on here which was exactly what i was looking for anyways i want to make it a bit more advanced for some of the sections on my site so it includes different pages but im not sure how to do this for example i want a link like index.php?x=tools&pg=1 as i think im correct in "&" allowing other variables. so when it does that i want it to include tools$pg.htm which would be tools1.html any help much appreciated. thx
<?
switch ($_GET["x"]) {
case "downloads":
include ("downloads/index.php");
break;
case "tools":
include ("Includes/Tools/tools.htm");
break;
case "tools&pg":
include ("Includes/Tools/tools$pg.htm");
break;
case "contact":
include ("includes/contact.php");
default:
include ("news.php");
}
?>