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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation How Use Keyword Or Description Meta Tag In Php

    HELLO
    HOW USE KEYWORD and DESCRIPTION META TAG IN PHP-
    i used simple html keyword meta tag in php but dosent work,
    Please help me?
    thanks for your reply

  • #2
    4xz
    4xz is offline
    Regular Coder
    Join Date
    Aug 2004
    Location
    localhost
    Posts
    163
    Thanks
    0
    Thanked 1 Time in 1 Post
    You're mixing up things I believe :

    The metatags are on the client, the PHP script on the server. So the only way you can do anything at all with metatags using PHP would be to echo them into the HTML page.

  • #3
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question thanks

    hello
    thanks for ur answer,
    i dont know php,how to echo it?
    this is html tag:
    <meta name="keywords" content="hgfgf" />
    and how to echo?and in whrer section of php?
    Thanks again

  • #4
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy can every body help me please?

    can every body help me please?

  • #5
    Regular Coder musher's Avatar
    Join Date
    Jan 2005
    Location
    Minnesota
    Posts
    203
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OKOK,
    show us the code that your having problems with.

    Here's a sample of how to pull a variable in as your keyword content (that 4xz was talking about)
    Code:
    <php
       **** php stuff here ******
       $var_name = "keyword one, keyword two, keyword three";
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
     "http://www.w3.org/TR/html4/loose.dtd">
    <html lang="en">
    <head>
      <meta name="keywords" content="<?php echo $var_name; ?>" />
    Last edited by musher; 08-23-2006 at 05:51 PM.
    Thanks
    Jim M

    "Lord, help me to become the person my dog thinks I am" - Dawn Ewing
    "If you must know. Yes, I do enjoy running after the dog sled when I fall off" - Me

    www.huskyzone.com -- Woodland Siberians


  •  

    Posting Permissions

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