homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

External Variables
How do you call up...

 8:45 pm on Aug 11, 2004 (gmt 0)

It's probably not called an external variable... but this is what i need.

I have a new design that uses a template... so it works like this:

call up index.php (containing variables like content), this includes the template.php (includes the "backbone"). Now the template also calls up a few other pages (like the header, sides and bottom) but I need it to call up something else...

Now I need a page with variables that are the code. So when I change the code from layout to layout, it's in one page (i'm not putting it in the template because some pages use 3 tables and some use 5, it's always changing). Or even... can I make the template have variables then when I have a new table jsut include that var... no... because it can't do that if the page is always changing...

Grrr ok really i need a template that can always change. So every page is different in some use more tables and some don't, but how could the template POSSIBLY KNOW? Ugh... How can i configure a my template to "always changing" content? It would ahve to call variable from somewhere and know that it has to call it up.

With that how DO you call a variable from another page? like lets say i have a header that is all variables, how do i call up the one variable i need... in that page?

like include("url"header.php:@main;)>

u know what i'm saying >.<

Thank you.



 8:45 pm on Aug 12, 2004 (gmt 0)

u know what i'm saying >.<

I don't reckon so. You might want to post a short example of what you're trying to do.

Are you saying you want variables that are code references? You can make a reference to a function, if that helps:

(I hope this URL is OK:)
[devarticles.com ]

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved