Thanks, just so I'm clear though, my index.php has nothing except the code you provided right?
Edit: hmm, can't seem to get this to work
Code:
Parse error: parse error, unexpected $end in http://www.example.com/index.php on line 16
Edit2: I found a code that I got to work.
PHP Code:
<?php
if(!isset($_GET['page'])){
$page = "home";
} else {
$page = $_GET['page'];
}
$path = $page.".php";
if (file_exists($path)){
include($path);
} else {
echo "Sorry, the page doesn't exist...";
}
?>
Thanks for replying anyways, I appreciate the help
Bookmarks