i have a simple php navigation script that works fine (index.php?id=blah)
I just made a subfolder called 'login' in my root directory to organize my news system files.
How do I use the php navigation system to access these files now that they're in the subfolder?
Currently this is what it is:
<?php
$page=$_GET['id'];
if ($page == '')
{
include 'news/main.php';
} else {
if (isset($_GET['id']) && file_exists($_GET[id].'.php'))
{
include $_GET[id].'.php';
} else {
echo "<h2>The page you have requested does not exist on the server.</h2>";
}
}
?>
I tried using http://mysite.com/index.php?id=login/news.php but that didn't work.
thank you