Possible Duplicate:
PHP: “Notice: Undefined variable” and “Notice: Undefined index”
This code shows warnings on the * marked line, so any idea without using ini_set("display_errors", 0);
?
Just need any alternate code...
$page = $_GET['page']; // gets the variable $page ******
//global $page;
if (!empty($page)){
include($page);
} // if $page has a value, include it
else {
include("home.php");
} // otherwise, include the default page
And here is the warning "Notice: Undefined index: page in :\www\Apachi_xampp\setup\xampp\htdocs\index.php on line 284"
Thanks in advance.