Notice: Undefined index
Posted: Tue Nov 16, 2004 1:02 pm
i keep getting the following error
Notice: Undefined index: act in D:\web\wwwroot\plat\index.php on line 32
that is the code for it.
how can i resolve this without turning of error reporting
Notice: Undefined index: act in D:\web\wwwroot\plat\index.php on line 32
Code: Select all
$page = array(
'idx' => 'news',
'join' => 'join'
);
$_REQUESTї'act'] = $_REQUESTї'act'] == '' ? "idx" : $_REQUESTї'act'];
if (!isset($pageї $_REQUESTї'act'] ]) )
{
$_REQUESTї'act'] = 'idx';
}
require $root.'/sources/'.$pageї $_REQUESTї'act'] ].'.'.EXT;how can i resolve this without turning of error reporting