bugger it... i'm still getting
Notice: Undefined index: page in C:\Work\rb26net\site ideas\index2.php on line 15
....
my index2.php page is thus;
<?
ini_set('include_path', 'includes/');
include ("header.php");
include ("functions.inc");
?>
<table width="600" height="300" border="0">
<tr>
<td width="85" align="left" valign="top">
<?
include ("menu.php");
?>
</td>
<td align="left"><div id="scrollcell">
<?php
get_page($_GET['page']);
?>
</div></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
and my functions.inc is thus;
<?
function get_page($page) {
if ($page == '') { $page='home'; }
switch ($page){
case 'about':
include('about.php');
break;
case 'home':
include('home.php');
break;
case 'contact':
include('contact.php');
break;
case 'gtr':
include('gtr.php');
break;
case null:
include('home.php');
break;
default:
include('404.php');
break;
}
}
?>
can you shed any light?
the links seem to work now, but it just displays this error a lot..
Thanks again,
Christian