...

View Full Version : How Use Keyword Or Description Meta Tag In Php



okok
08-23-2006, 09:19 AM
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

4xz
08-23-2006, 12:53 PM
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.

okok
08-23-2006, 12:59 PM
hello
thanks for ur answer,:o
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

okok
08-23-2006, 05:16 PM
can every body help me please?

musher
08-23-2006, 05:44 PM
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)


<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; ?>" />



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum