I have the following code inside a "content" div on my index page, if I click any of the links in my navigation bar, the relevant pages load into the "content" div. it works exactly as I need it to!
if (isset($_GET['page']))
{
include($_GET['page']);
}
else
{
include("./home.php");
}
However, if I change the URL manually to say: mywwebsite/index.php?
?page=index.php, the index page loads itself into the "content" div and i get a hall of mirrors effect in the div. i realise this cannot be good!
I now this is a basic error on my part but just cannot see it, any help would be great!