I'm trying to build my first PHP website and have a question.?

adam.robertson

New member
I'm using <?php $thisPage= to automatically fill the page title, meta tags, and active state of my navs. However, I'm including 2 navs (a main and a sub) and I'm not sure how to have 2 pages for the <?php $thisPage=. This doesn't work: <?php $thisPage="page1","page2"; ?> Any help?
 
Use require_once for all external code on the page. e.g.

<!-- include left navigation menu sytem -->
<div id='leftNav'>
<?php
require_once('left_nav.php');
?>
</div>
 
Well, no help here...you see, I've been programming web applications in PHP and Perl for...I don't know...ten years, and I have no idea what you're talking about or trying to do.

What the heck is the "active state of my navs"?
 
Back
Top