Hello again, I know I ask a lot of questions but this site has some really friendly and knowledgable people here that have really helped me. I would do a google on this but don't know exactly how to search for it. This example here
http://www.blucode.net/testing/index.php?page=main
When you navigate through the menu everything stays the same except for the content for each page. I am trying to figure out how that works.
I have read about this code
<?php
//grab ?page=pagename
$page=$HTTP_GET_VARS['page'];
$page=str_replace('.','',$page);
$page=str_replace('/','',$page);
if ($page != '') {
$pagefile=($page.'.php');
if (file_exists($pagefile)) {
include($pagefile);
}
else if (!file_exists($pagefile)) {
include('404.php');
} }
else {
include('main.php');
}
?>
Problem is I don't know exactly how to use it or where to put it as I read it on a forum topic but it didn't go into detail. So if anyone could tell me or point me to some reading of exactly how
to create a page like this, that would be great. I know it is something easy I a lot of pages are built this way. I like the fact I can build a set template and then just change the content of what's in it.
One last thing how do you make a, I guess you would call it a breadcrumb trail? That's what I always called it. Looks similar to something like this. I.E.
Home > Geocaching Tools > Coordinate Converter
Thanks in advance for the help and suggestions, this site has really helped me and I am really enjoying learning php.