this message was also posted in the "newbies" forum: http://www.phpbuilder.com/board/showthread.php?s=&postid=10397989#post10397989
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) {
case main:
include($o."$include/home.inc");
break;
case family:
include($o."$include/family.inc");
break;
default:
include($o."$include/home.inc");
break;
}
?>
and I am attempting to invoke it as so...
<a href="main.php?o=main" >[ home ]</a><br>
<a href="main.php?o=family" >[ family ]</a><br>