User Profile
Collapse
-
anyone? doesn't anyone know how to fix this? -
...Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <!-- <title>MicroStudios - <?php echo $title; ?> - Best viewed in Firefox</title>--> <meta content="text/php;
Leave a comment:
-
i'm not sure i understand how that would work... doesn't the <title> tag have to be set in the <head>?
and besides that i don't think it would work for everything i'm trying to do because sometimes i want to be able to take the title from other things in the page. For example, a specific blog post, i don't know the name of the post until it has been loaded so i can't pre set the title for that...
it would be...Leave a comment:
-
I had been trying to use something along the lines of
HEAD
INCLUDED BODY PAGECode:<title>MicroStudios - <?php echo $title; ?> - Best viewed in Firefox</title>
but that doesn't work because the included "About" page is loaded after the index.php has already declared the title.Code:<?php $title="About"; header($title); ?>
i don't know php well...Leave a comment:
-
Custom Chaging Page Title with php
http://microstudios.co.cc/
I assume that this should be quite easy but i just cant figure this out at all... I'm trying to make it so that the title of the page changes depending on the page that is included into my base index.php.
i have things set up within the index.php so that i use this code
...Code:<?php if (!isset($_GET['page'])) { $page = "blog"; } else {
No activity results to display
Show More
Leave a comment: