Results 1 to 2 of 2

Thread: php title tags

  1. #1
    Join Date
    Oct 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default php title tags

    I have a site that is done in php, as far as I understand my menu is in htm and I put a php code in, I point that towards all the pages and do them in php, that way when I change the menu all my other pages update automatically. I have searched and searched and please forgive my naievity but I want to have a different title tag on each page and just can't figure out how to do it! Any helpers please?

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Not exactly sure what you are asking, but it doesn't matter if your pages are html or php, if you save them as .php they will be php pages, even if there is zero php coding in them.

    As far as the titles go, edit the page you want to put the title on, and you should see a few tags at the top something like:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
    <html dir="ltr" lang="en">
    <head>
    Directly under that and above the <body> tag you should put

    Code:
    <title>The Page Title Here</title>
    thats it, page titles are done in html. Easy as that.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •