I have an index.php file. Inside the index.php file I am using the following php code to open a "home.php" page from a "pages" folder:
<?
switch (isset($do)) {
case $do=='home':
include("pages/home.php");
break;
}?>
It works fine. My problem is that I want to open a "about.php" page inside the index.php as well. The "about.php" page is not inside the "pages" folder but rather in a different folder called "about". I am using this php code but it is not working:
<?
switch (isset($show)) {
case $show=='about':
include("about/about.php");
break;
}?>
Can someone please point where I am wrong? I appreciate your help.