Ok, I am trying to create a "framework" php file to run my site - using includes to bring in content (and css for the colors and most styling)...
BUT what I have problems with is the IDs for the files.
I have a PHP file that has two includes: $topics (the Table of Contents are) and $content (main contents area)
I have a coresite.php file defining the inputs for those to be set based on a "$pgid" value; to be set per page, so when you load the page the correct topics and content load up.
If I put $pgid = ("welcome"); it makes the page static (in effect) with the main site's "welcome" and "main toc" files...
I have a set of links on the topics section that will be a column of links on the side of the page - but I can't get them to reload the page with an ID value ofr $pgid - so the page loads different data in the includes.
I want it, by default, to grab maintoc.php and welcome.php for $topics and $content (respectively)... and then if the $pgid = "welcome" then those same (the "HOME" link basically); but for the other pages, I want $pgid = "Fighters" to open up $topics as "ftrtoc.php" and $content as "fighters.php".
Those files are defined in coresite.php with a switch function - and this is called via "require_once" in the opening lines of code of the php file. This works, unless I want something other than "welcome". Even manually changing the $pgid on the file (I had it hand-coded on the file to test it) won't load anything but the FIRST switch entry - regardless of the $pgid.
Is there an easy way to make a link basically reload a page with a new $pgid value to make it change what the includes ($topics and $content) are?
TIA for any help.