User Profile

Collapse

Profile Sidebar

Collapse
StarWallace
StarWallace
Last Activity: Dec 17 '10, 06:20 AM
Joined: Jul 11 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • StarWallace
    replied to Custom Chaging Page Title with php
    in PHP
    anyone? doesn't anyone know how to fix this?
    See more | Go to post

    Leave a comment:


  • StarWallace
    replied to Custom Chaging Page Title with php
    in PHP
    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;
    ...
    See more | Go to post

    Leave a comment:


  • StarWallace
    replied to Custom Chaging Page Title with php
    in PHP
    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...
    See more | Go to post

    Leave a comment:


  • StarWallace
    replied to Custom Chaging Page Title with php
    in PHP
    I had been trying to use something along the lines of

    HEAD
    Code:
    <title>MicroStudios - <?php echo $title; ?> - Best viewed in Firefox</title>
    INCLUDED BODY PAGE
    Code:
    <?php $title="About"; header($title); ?>
    but that doesn't work because the included "About" page is loaded after the index.php has already declared the title.

    i don't know php well...
    See more | Go to post

    Leave a comment:


  • StarWallace
    started a topic Custom Chaging Page Title with php
    in PHP

    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 {
    ...
    See more | Go to post
No activity results to display
Show More
Working...