RE: [PHP] Include Problems
| From: | Jennifer Goodie | Date: | Thu, 24 Jul 2003 19:13:50 +0000 |
| Subject: | RE: [PHP] Include Problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156717@lists.php.net to get a copy of this message | ||
Without seeing what you have in your includes, it will be hard to determine
where your scope is messed up.
> <?php
> $subnav = "home";
> include("incHeader.php");
> ?>
>
> <!--- CONTENT AREA --->
>
> The content would go here.
>
> <!--- END CONTENT AREA --->
>
> <?php include ("incFooter.php"); ?>
>
> Now, when I try to reference the subnav variable in the inHeader.php or
> incFooter.php files, it comes up blank. I am basically trying to
> adjust the
> navigation on each page depending on the page I am on. I am just learning
> PHP, have programmed in ColdFusion for years and in ColdFusion
> this was not
> a problem. Any ideas?