Re: Variables/Include Problem
| From: | Philip Olson | Date: | Thu, 24 Jul 2003 19:41:25 +0000 |
| Subject: | Re: Variables/Include Problem | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969355466@lists.php.net to get a copy of this message | ||
Hello Eric-
Wrong list, have a look here:
http://www.php.net/support.php
php-general would be a more appropriate list.
Regards,
Philip
On Thu, 24 Jul 2003, Eric Fleming wrote:
> I am having some problems using variables in included files. Can someone
> please look at my code below and see how I might accomplish what I am trying
> to do?
>
> <?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?
>
> Eric Fleming
>
>
>
> --
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>