dynamic html pages in php
Posted: Sun Nov 20, 2011 7:22 am
im new to php and im try to work on dynamic html pages with php
everything seemed to ok but when i try to make pages dynamically
an error shows up like this
Notice: Undefined index: page in C:\xampp\htdocs\myfolder\website\inter.php on line 5
i checked it out on the net and someone insisted on using this(@) in front of $ it worked
though when i try to click on the navbar the design button i get this error
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
somebody help because this error is pulling backwards
everything seemed to ok but when i try to make pages dynamically
an error shows up like this
Notice: Undefined index: page in C:\xampp\htdocs\myfolder\website\inter.php on line 5
i checked it out on the net and someone insisted on using this(@) in front of $ it worked
though when i try to click on the navbar the design button i get this error
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
Code: Select all
<?php
include ("includes/header.html");
include ("includes/navbar.html");
if ($_GET['page'] == "design")
{
include ("includes/design.html");
}
else {
include ("includes/home.html");
}
include ("includes/footer.html");
?>