Write a menu system with links like
default.php?loc=101
default.php?loc=102
default.php?loc=103 etc etc
And then in default.php you have two options.
The first is to capture the $loc var got from the query string and put it through a switch statement to redirect the page i.e.
<?
function redirect_to($str_url)
//writes a clientside javascript window.location to redirect the browser
{
echo("<script language=\"javascript\">
window.location=(\"".$str_url."\");
</script>");
}
switch($loc)
{
case 101:
redirect_to("aboutus.php");
break;
case 102:
redirect_to("products.php");
break;
case 103:
redirect_to("contact.php");
break
default:
}
?>
the second option (and more preferable) is to create a database with two fields, pageid and url and store all info in there. When they hit default.php (or whatever page you're using as an engine) it checks the $loc var and gets the respective record from the database. Then it calls the redirect function and bobs your uncle.
The above method is much more easier to administrate rather than writing a complex switch statement with hundreds of lines if your site has hundreds of pages. Instead, enter the page ids and urls for all your pages and generate your navigation menu from the database.
Hope this helps, if you want any more help or if you have any more questions, drop me a line.
Regards,
Leon.