crewscw Posted August 27, 2010 Share Posted August 27, 2010 Hi there, I'm trying to get the full Product Name in the <title> of each of the product pages - I can't seem to figure out what to put in the product_info.php... I've tried a few different options but I'm not great with php Here's what I have currently but it creates errors... <script language="javascript"><!-- document.write('<title><?php echo TITLE; ?> : <?php $product_info['products_name']; ?> </title>'); //--></script> Hope someone can help - thanks so much! Link to comment https://forums.phpfreaks.com/topic/211908-product-name-in-of-each-product-page/ Share on other sites More sharing options...
haku Posted August 30, 2010 Share Posted August 30, 2010 Why are you doing this in javascript if you are outputting it from PHP? Link to comment https://forums.phpfreaks.com/topic/211908-product-name-in-of-each-product-page/#findComment-1105136 Share on other sites More sharing options...
chintansshah Posted September 22, 2010 Share Posted September 22, 2010 HTML code <head> <title><?php echo $title; ?></title> </head> Link to comment https://forums.phpfreaks.com/topic/211908-product-name-in-of-each-product-page/#findComment-1114059 Share on other sites More sharing options...
Rakuhana Posted October 8, 2010 Share Posted October 8, 2010 What system are you using? Link to comment https://forums.phpfreaks.com/topic/211908-product-name-in-of-each-product-page/#findComment-1120079 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.