Hi,
My pages display in two frames: the top frame contains menu.php while the bottom frame holds content.php, both templates with individual content determined by variable called from the URL.
The frameset page holds the variables which determine what content goes in the templates, so the urls look something like:
www.website.com/frameset.php?menu=1&content=y
Now, the following is what I have in my content.php file:
=======================================
if (file_exists($menufile.txt)){
include("$menufile");
}
elseif ($id == Null) {
include("$defaultmenu");
}
else {
include($defaultmenu);
}
exit();
if (file_exists("$content.txt")){
include("$content");
}
elseif ($t == Null) {
include("$menu");
}
else {
include("$defaultcontent");
}
So when I call up "frameset.php?menu=1&content=1", I get menu #1 with content #1 in my frameset. Omitting the "$content=1" will bring this page up anyway since its the section default which comes up since I set the condition to call up that section's menu reference to get the corresponding page (my default section pages are named the same as the menu files but in a different directory).
However, when I try to call up a different content page in a section (a content file that exists but doesnt correspond with the section's file name), I still only get the section's default page.
So something's wrong above my above code.
Sorry if I went into too much details here but it was the only way I could get my point across 🙁
Can anyone help?
Many thanks...