Jump to content

meta tag php print


s4salman

Recommended Posts

I am using this code to print variable value into meta tag :

 

<META name="keywords" content="<?php echo "$name 3gp Video"; ?>, katrina kaif, mobile videos, 3gp mobile videos, emma watson videos, aishwarya rai videos, bollywood videos">

 

But

<?php echo "$name 3gp Video"; ?>

 

is not printing the $name value. When i see the html source code of the web page, i only see this :

 

<META name="keywords" content="katrina kaif, mobile videos, 3gp mobile videos, emma watson videos, aishwarya rai videos, bollywood videos">

 

Anyone could help me how to make this code add up $name value into meta tag.

Link to comment
https://forums.phpfreaks.com/topic/196041-meta-tag-php-print/
Share on other sites

Ya i have defined the $name in the php file above the meta tag code.

But i am still having the problem.

 

Before the meta tag, i am successfully printing title code like this :

 

<title><?php
   echo "$name 3gp Video";
?>, Katrina Kaif, mobile videos, 3gp mobile videos, emma watson videos, aishwarya rai videos, bollywood videos</title>

 

But i am getting problem in meta tag.

Link to comment
https://forums.phpfreaks.com/topic/196041-meta-tag-php-print/#findComment-1029867
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.