What I need is for the menus of my website, when clicked, to determine what the content is that lods up under the topnav. As I have it right now...
Code: Select all
<body>
<?php include 'topnav.php' ; ?>
<?php include '$menu' ; ?>
</body>Moderator: General Moderators
Code: Select all
<body>
<?php include 'topnav.php' ; ?>
<?php include '$menu' ; ?>
</body>Code: Select all
switch($_GET['page']) {
case 1:
//first page
require_once("home.php");
break
case 2:
//second page
require_once("about.php");
break
case 3:
//third page
require_once("contact");
break
default:
//default to first page
require_once("");
break
}