hyperlinks and variables?
Posted: Mon Feb 27, 2006 9:06 pm
Feel like a complete novice on this one, I know a few other programming languages, but for some reason, I just realized I have no idea how to do this via php.
I have an index page, which consists of 6 parts, all includes. Includes are header.php, menu.php, submenu.php, body.php, bottommenu.php, and footer.php.
Now, currently, I have this for the body.php include...
what I want to be able to do is have different hyperlinks that will enable me to change what page is included in the body, or, rather, more precisely ,change the variable $pageid on click and load the page with the new page in place.
And for some reason, for the life of me, I can't wrap my head around it.
Any suggestions guys? or for that matter, a better way of doing what I'm trying to do?
Thanks in advance, ciao.
I have an index page, which consists of 6 parts, all includes. Includes are header.php, menu.php, submenu.php, body.php, bottommenu.php, and footer.php.
Now, currently, I have this for the body.php include...
Code: Select all
<?php
if($pageid != '')
{
include($pageid);
}
else
{
include("body.php");
}
?>And for some reason, for the life of me, I can't wrap my head around it.
Any suggestions guys? or for that matter, a better way of doing what I'm trying to do?
Thanks in advance, ciao.