Hi peeps.
I've been trying to make this kind of navi system..
but i don't know why it doesn't work.
I'm just starting to learn php, by the way..
here is the code that will work as an iframe:
<?
switch($id)
{
default:
include("home.html");
break;
case "links":
include("links.html");
break;
case "tuts":
include("tutorials.html");
}
?>
^ this would be activated by this:
<a href="?id=links">Links</a>
<a href="?id=tuts">Tutorials</a>
here's the problem...
undefined variable id
but it still does the default action from the switch
but when i define the id variable, it always load the defined value..
plus.. the links doesn't work. it only performs the default action..
i'm using IIS.
Thanks in advance. 🙂