page <title> from include variable, how?

From: mark (dgfgdfgdg_at_asdfasd.com)
Date: 12/30/03


Date: Tue, 30 Dec 2003 20:02:47 -0000

IF I have something like this:

<title><?php print($pagetitle); ?></title>
<body>
<?php include("folders/my_include.php"); ?>
</body>
</html>

and my_include.php contains the value to the variable ($pagetitle). How do I
get the value before the code for the <title> is written. This is just a
basic example I used to try and put across my question, my site has a whole
bunch of includes dynamically generated from user input. I'd just like to
get the <title> to change according to a variable in the includes......but
I;m stuck?

thanks

mark



Relevant Pages

  • Page <title> from include variable?
    ... bunch of includes dynamically generated from user input. ... Im stuck? ... before the title tag won't look very good:) ...
    (comp.lang.php)
  • Re: A question about partials
    ... stuck, not damaging the teeth). ... Mark & Steven Bornfeld DDShttp://www.dentaltwins.com ... get past being so afraid now. ...
    (sci.med.dentistry)
  • Re: TECH: WPC Driver Board Question...
    ... A silently stuck jet pop bumper fried a bunch of stuff (like 8 102s ... since I'm guessing the stuck on coil was caused by a bad ...
    (rec.games.pinball)
  • Re: Black Ink Irregulars beat Purple Pros
    ... >, Mark J. ... he's the villain of a semi-legendary Legion ... > story that did a bunch of stuff -- fixed Lightning Lad's arm, ...
    (rec.arts.comics.misc)
  • Re: Blimey Top Gear Got A Bit Political Last Night Didnt It
    ... decent satire on TV. ... What passes for satire on the BBC nowadays is a bunch of middle aged ... PC lefties stuck in some time warp, with the needle stuck, making ... views into practice because comedians, at best, can only make good ...
    (uk.media.tv.misc)