Click to See Complete Forum and Search --> : How to manage pages on web site with ID
toplisek
04-25-2007, 04:36 AM
As I have many navigation links in menu option, I would like to control pages with links as example: index.php?id=org" for organization.
How to correct with code with PHP to manage this and I do not need all the time name of page in link like <a href="organization.php">My organization details</a>
Suhas Dhoke
04-25-2007, 04:55 AM
If you are including a common file on each page (like header.php), then you can check the code and redirection of next page there.
Like,
if ($_GET['id'] == 'org') {
header('Location: organization.php');
exit;
}
toplisek
04-25-2007, 04:57 AM
What about management of many pages? If there are many pages to manage is probably better solution?
Suhas Dhoke
04-25-2007, 05:07 AM
Look, you have a common HTML file, which used to fetch the basic contents of your site.
and you include/use it in all other pages too.
As like, if you have a common PHP file, you write the redirection code only once.
Instead of changing/adding the code in all files.
Am i going to wrong direction ?
Or write down an example.
I believe this (http://brainstormsandraves.com/archives/2006/09/27/navigation/) is what you are looking for.