Menu
How can I add to the list if anything else that is pulled from [‘url’] that is not specified within the code then include “error.php”.
[code=php]
if(isset($_GET[‘url’])) {
switch($_GET[‘url’]) {
case “01”:
include(“01.php”);
break;
case “02”:
include(“02.php”);
break;
}
}
Say they go to url=03, I didn’t put 03 on the list, I need it to load the default “error.php”.