View Full Version : How Use Keyword Or Description Meta Tag In Php
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
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.
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?
can every body help me please?
08-23-2006, 06:44 PM
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 stuff here ******
$var_name = "keyword one, keyword two, keyword three";
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<meta name="keywords" content="<?php echo $var_name; ?>" />
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.