of course, I didn't have a backup, and when my site got hacked the other day, I couldn't remember my code on my site...
why is the following not working? I want to load pages using a switch, and for some reason, only my default loads on each click... here is my code:
($include is the path to my include directories)
<?php
switch ($o) {
default:
include($o."$include/home.inc");
break;
case main:
include($o."$include/home.inc");
break;
case family:
include($o."$include/family.inc");
break;
}
?>
and here is the way that I am trying to invoke such a switch:
<a href="main.php?o=main" >[ home ]</a><br>
<a href="main.php?o=family" >[ family ]</a><br>
<a href="main.php?o=links" >[ links ]</a><br>
<a href="main.php?o=linux" >[ linux ]</a><br>