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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.