Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. how to specify page title?

how to specify page title?

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
questiontutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    Hi, I am using this code to have a clean page layout.. I want to know, using my code how can I specify different page title for every page? here is the code http://www.rmc.bh/temp/Myfiles.zip Thanks, Jassim

    M A 2 Replies Last reply
    0
    • J Jassim Rahma

      Hi, I am using this code to have a clean page layout.. I want to know, using my code how can I specify different page title for every page? here is the code http://www.rmc.bh/temp/Myfiles.zip Thanks, Jassim

      M Offline
      M Offline
      Mohibur Rashid
      wrote on last edited by
      #2

      take a variable, say $Title, use it in header.php this way

      <?=$Title?>
      <?php echo $Title?>

      and in the main pages do like this main.php

      $Title="Title for Main Page";
      require_once("header.php");

      1 Reply Last reply
      0
      • J Jassim Rahma

        Hi, I am using this code to have a clean page layout.. I want to know, using my code how can I specify different page title for every page? here is the code http://www.rmc.bh/temp/Myfiles.zip Thanks, Jassim

        A Offline
        A Offline
        arya1685
        wrote on last edited by
        #3

        I think you know the answer of this question then why posting it...........

        Thanks & Regards
        Arya1685
        “You are not only responsible for what you say, but also for what you do not say”

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups