Hey guys and gals,
In my ongoing php experiments I'm trying to build a script and what I would like to do is make a group of links(they will be static) ie....
But the twist to this is I want it so that they will be embedded into an if/elseif/else grouping that point to additional code.
So the overall layout of the page would be like:
<included static page with the menu containing the above links>
<divs that "appear" using if statements>
If that makes sense.........Now I know there are other ways to do this and probably using AJAX would be easier but I'm stubborn and experimenting.
My thoughts were to make variables and put them in the if statements and forcing the page to refresh....so my thoughts so far would be along the lines of
$index='<a href="index.php">Index</a>'; if ($index=?) echo '<div></div> else ($about=?) echo '<div></div>
Not sure if I'm explaining it thoroughly enough, but I want to know that it is possible and I'm not on glue.