I still actually have a small problem. I want the includes to come from a different directory not the one the script runs in.. In this code I want my directory before the $GET function, I tried but its just giving errors: [code]if (isset($_GET['page1']) && in_array($_GET['page1'],$page1)) { include /MYDIRECTIORY/($_GET['page1'].".php");[/code] The Remaining Codes: To call a page you would use [a href=\"http://www.domain.com/index.php?page1=type1\" target=\"_blank\"]http://www.domain.com/index.php?page1=type1[/a] The page its calling would reside in the same directory, named type1.php [code]<?php $page1 = array("type1","type2","type3"); $page2 = array("type1","type2","type3"); $page3 = array("type1","type2","type3"); $page4 = array("type1","type2","type3"); if (isset($_GET['page1']) && in_array($_GET['page1'],$page1)) { include ($_GET['page1'].".php"); } elseif (isset($_GET['page2']) && in_array($_GET['page2'],$page2)) { include($_GET['page2'].".php"); } elseif (isset($_GET['page3']) && in_array($_GET['page3'],$page3)) { include($_GET['page3'].".php"); } elseif (isset($_GET['page4']) && in_array($_GET['page4'],$page4)) { include($_GET['page4'].".php"); } else { include("includes/main.php"); } ?>[/code]