Php Title & Meta Tag

Discussion in 'HTML & Website Design' started by Platypus, May 23, 2009.

  1. #1
    I need someone to help me create a PHP and meta tag script.

    Basically heres what I have in mind, but I do not exactly know if its correct.

    My content module uses ?page,

    therefore the title would be like this in the index:

    <title>My website - <? Page title?></title>

    And something like this would be on the content file:

    <title>Contact Us</title>

    So basically I need a script that takes the title in my content box and puts it in the index title.

    The same script should also be used for meta tags.

    Killingfloor411.com

    You can see what i mean by my content module..

    P.s. I found this on the internet:

    Would that work?
     
    Platypus, May 23, 2009 IP
  2. AdscendJeremy

    AdscendJeremy Peon

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you have your full answer already in front of you ;)
    That would work just as you described.
    Define the title in a variable and then echo it as in the example ;)
     
    AdscendJeremy, May 23, 2009 IP