Page <title> from include variable?
From: mark (dgfgdfgdg_at_asdfasd.com)
Date: 12/31/03
- Next message: Yang Li Ke: "$HTTP_POST_FILES vs $_FILES"
- Previous message: CountScubula: "Re: FTP_login + $pass="" and $user="""
- Next in thread: Randell D.: "Re: Page <title> from include variable?"
- Reply: Randell D.: "Re: Page <title> from include variable?"
- Reply: CountScubula: "Re: Page <title> from include variable?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Dec 2003 23:40:07 -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
Im stuck?
I should say also that all my includes have includes themselves, they
include a html template. So placing <?php include("folders/my_include.php");
?> before the title tag won't look very good :)
thanks
mark
- Next message: Yang Li Ke: "$HTTP_POST_FILES vs $_FILES"
- Previous message: CountScubula: "Re: FTP_login + $pass="" and $user="""
- Next in thread: Randell D.: "Re: Page <title> from include variable?"
- Reply: Randell D.: "Re: Page <title> from include variable?"
- Reply: CountScubula: "Re: Page <title> from include variable?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|