<?php
if (file_exists($page)) {
switch ($page) {
case home:
include 'home.php';
break;
case chat:
include 'chat.php';
break;
case contact:
include 'contact.php';
break;
case links:
include 'links.php';
break;
case samples:
include 'samples.php';
break;
case tutorials:
include 'tutorials.php';
break;
case artists:
include 'artists.php';
break;
case files:
include 'files.php';
break;
case news:
include 'news.php';
break;
case interviews:
include 'interviews.php';
break;
default:
include 'splash.php';
}
} else {
echo 'Page Does Not Exist';
}
?>
this is the code i use for the urls in my site.
it makes the link:
www.swsm.net/index.php?page=home
ect...
but all i get is
"page does not exist" error
even if the page is there it says it doesnt exist and but it does.
does any1 know where i might of went wrong?