Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Apr 2003
    Location
    Canada, Ontario, Mississauga
    Posts
    312
    Thanks
    0
    Thanked 0 Times in 0 Posts

    include page's meta tags

    I created my page using lots of include, the beginning of the page always include the header.php, side.php and footer.php

    I want to insert some meta tags into the header.php

    the problem is, I only have one header.php file to insert the meta tags.

    for example, pages ram.php, monitor.php, case.php....
    I want to have meta tags for ram, monitor and case.. but I don't know how to put them into the header.php seperately.

    hope you know what I am talking about,

    thank you,

    Mike

  • #2
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you can use include() in includes. so you can include files within your includes.

    eg:

    Main Page (includes) -->

    Sub Page (includes) -->

    Meta tags page

  • #3
    Regular Coder
    Join Date
    Nov 2002
    Posts
    161
    Thanks
    2
    Thanked 0 Times in 0 Posts
    You could put the meta tags into header.php and use variables in it (e.g. $description) and declare the variables on the page before the include() function is used, that way you would use the same include file and have a different output


  •  

    Posting Permissions

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