thanks.
I guess I didnt word it very good. 🙂
What im doing this for is for an include page. I have one main page index.php then I want all the other pages to be like: index.php?page=hello then it reads the var page and takes us to the hello page. But this is where im confused. Say I have pages within a page so I start using index.php?page=hello&id=5 well now I want it to display id 5 not page hello.
maybe if I show you script im using it will give you an idea. Bear with me, I havnt done php in forever. 🙂
Here is full script Im using:
<?
if(isset($_GET['id']) && isset($_GET['page']))
{
include("incl/".$_GET['id'].".incl");
}
if(!isset($_GET['id']) && !isset($_GET['page']))
{
include("incl/News.incl");
}
if(isset($_GET['id']) && !isset($_GET['page']))
{
include("incl/".$_GET['id'].".incl");
}
if(!isset($_GET['id']) && isset($_GET['page']))
{
include("incl/".$_GET['page'].".incl");
}
?>
Thanks,