Hi Guys,
Need some help here scratching head....
<?
switch ($_GET['page']) {
case 'about':
$inc('about.php');
break;
case 'home':
$inc('home.php');
break;
case 'contact':
$inc('contact.php');
break;
case 'gtr':
$inc('gtr.php');
break;
case null:
$inc('home.php');
break;
default:
$inc('404.php');
break;
}
?>
I get the following error;
Notice: Undefined index: page in C:\Work\rb26net\site ideas\includes\functions.inc on line 2
i dont understand why? Can anybody help me?
Is it because I haven't stated what 'page' is? i wouldn't have thought so as its not a variable.. ??
Thanks,
Christian