Hi folks,
I am both newly registered and new to PHP and have been staring blankly at my page as I have come across the following error ‘Notice: Undefined index: page in C:\xampp\htdocs\phpTest\index.php on line 6’ with this piece of code below:
include (“includes/header.html”);
$page = $_GET[‘page’];
if ($page == ‘home’){
include (“includes/navhome.html”);
include(“includes/home.html”);
}elseif ($page == ‘links’){
include (“includes/navbar.html”);
include(“includes/links.html”);
}else{
include (“includes/navhome.html”);
include(“includes/home.html”);
}include(“includes/latest.html”);
include(“includes/footer.html”);
?>