Variable page titles based on URL

Discussion in 'PHP' started by TheGrecianHero, Dec 1, 2008.

Thread Status:
Not open for further replies.
  1. #1
    TheGrecianHero, Dec 1, 2008 IP
  2. misbah

    misbah Active Member

    Messages:
    265
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    68
    #2
    try this
    
    <?php $title = $_GET['file']; ?>
    <html>
    <head>
    <title><?php echo $title ?></title>
    </head>
    <body>
    Your content here
    </body>
    </html>
    
    PHP:
     
    misbah, Dec 1, 2008 IP
    TheGrecianHero likes this.
  3. TheGrecianHero

    TheGrecianHero Well-Known Member

    Messages:
    622
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Perfect! Thank you!
     
    TheGrecianHero, Dec 1, 2008 IP
Thread Status:
Not open for further replies.