I am using this PHP code:
if (isset($_GET['c'])) {
$pages = array("home", "upload", "signup");
if (in_array(strtolower($_GET['c']), $pages))
include('pages/'.$_GET['c'].'.php');
else echo "Page not found =(";
}
How should I do to so that the default page will be home.php with this code?
Assuming you still want a “Page not found” error when the visitor specifies an invalid page, you could do it like this: