Hi folks,
I set up a switch, following previous posts, to incorporate some simple navigation to my site.
if(isset($page))
{
switch ($page)
{
case "bio":
include("bio.php");
break;
default:
include("index2.php");
break;
}
}else
include("index2.php");
I have that all working. I included a menu.php in the index page which contains a simple HTML table, with links to the main sections of my page.
For example, the first link in the menu is to a BIO page. The URL is href="index.php?page=bio" So that all works fine....the bio.php is included on the index page. Only problems is that it loads right at the top of the HTML document....of course.
How do you point your includes to a table farther down the page. Or, is there a way to call on the included files from the location in the page that you want them to appear in? I don't want my bio.php include to appear at the top of the index.php page; rather, I want it to load into a content table, located in the middle of the page in the index.php file.