Jump to content

Vars from part of a page


me1000

Recommended Posts

ok here is what my pages look like...

[code]<?
$id = "1" ;
$title = "Main Page" ;
$restricted = "0 " ;
$keywords = "home page main " ;
$type = "1" ;
?>
 <HTML>
lalala
</HTML>[/code]

I need to access the $title var, to put it in the <title> tag
it will also be accessed in the page and printed there...

The the restricted needs to be accessed before the rest of the page,

the $type needs to be accessed in the page itself that the user sees.

Then all the HTML needs to be included like you would include a regular file...

im currently using this code on my tempate page to access the site.


[quote]<?
if ($page == "") {
include("home.php");

} else {
include($page.".php");
}
?>[/quote]


how can i expand upon that to give me what i need?


Thanks,
Link to comment
https://forums.phpfreaks.com/topic/26895-vars-from-part-of-a-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.