What about something like this :
$page = 'home';
if (isset($_GET['c'])) {
$pages = array("home", "upload", "signup");
if (in_array(strtolower($_GET['c']), $pages)) {
$page = strtolower($_GET['c'])
}
}
include('pages/' . $page . '.php');
BTW : by "default" I understood "if page not found, then include default one"
Also : if you files names are lower-case, you should use the lowercase name when including -- you are already useing lowercase for the comparison, so why not for the include ?
If you are developping on a Windows environment, files names are not case-sensitive, but the are on Linux -- and if you deploy on a Linux server... I let you guess what could happen ;-)