kooshin
08-27-2005, 05:57 AM
Hello guys
I have a question. I have the following code
<?php
switch(php_navigation) {
default:
include('news.htm');
break; case"what1":
include('whatever1.htm');
break; case"what1":
include('whatever2.htm');
break; case"what1":
include('whatever3.htm');
break; case"what1":
include('whatever4.htm');
break; case"what1":
include('whatever5.htm');
}
?>
which creates urls like mydomain.com/index.php?page=what1 and it is a good way to have one main design for the site and include the rest of the pages as needed but the problem is whenever I add a link to the main page then I have to write up a new case and the file name and include etc which is a pain so I was wondering if there is a way to include pages automatically whenever I new link is made and the page is there instead of having to rewrite the above code.
Someone told me it is there and it is possible and that they once had a such code but not having it now . So I was wondering guys if there is any way to achieve such thing.
thanks in advance.
Regards;
Kooshin
I have a question. I have the following code
<?php
switch(php_navigation) {
default:
include('news.htm');
break; case"what1":
include('whatever1.htm');
break; case"what1":
include('whatever2.htm');
break; case"what1":
include('whatever3.htm');
break; case"what1":
include('whatever4.htm');
break; case"what1":
include('whatever5.htm');
}
?>
which creates urls like mydomain.com/index.php?page=what1 and it is a good way to have one main design for the site and include the rest of the pages as needed but the problem is whenever I add a link to the main page then I have to write up a new case and the file name and include etc which is a pain so I was wondering if there is a way to include pages automatically whenever I new link is made and the page is there instead of having to rewrite the above code.
Someone told me it is there and it is possible and that they once had a such code but not having it now . So I was wondering guys if there is any way to achieve such thing.
thanks in advance.
Regards;
Kooshin
