Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.