Sorry, I have only beeb coding PHP now for 1 week, and what I am tryign to do is this...
I have a secondarynav.inc file that I am using to swap all secondary nav's at the top of my page. For example, when a user accesses /services/ the main secondarynav.inc file loads the .inc associated to that section.
Here's what I have so far. I haven't added the rest until I can figure out how to at least make the first set work!
<?php
// Services Subnav
if ($URL['http://www.mydomain.com/services'] {
include ($SERVER['DOCUMENT_ROOT'] . '/services/include/servicesnav.inc');
}
// Resources Subnav
elseif ($URL['http://www.mydomain.com/resources'] {
include ($SERVER['DOCUMENT_ROOT'] . '/resources/include/resourcesnav.inc');
}
// News Subnav
// Testimonials Subnav
// Contact Subnav
// About Subnav
// FAQ's Subnav
// SiteMap Subnav
// Default ELSE Subnav
else {
echo ("This file does not exist!");
}
?>
Any help on this is greatly appreciated. I have searched google/yahoo/phpbuilder, etc for hours and hours and couldn't find anything.
Thanks very much -
grafix