Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

box page text php links


meesto

Recommended Posts

Greetings,

 

I am trying to put a php link in the string argument. The link looks a bit like:

 

define('TEXT_INFORMATION', 'Some text with a link to '<?php echo '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . 'PRIVACY' . '</a>' . '; ?>'. And a bit more text.');

 

This obviously does not parse properly. What do I need to do to get this to work in a string definition? Is it possible? Thank you.

Link to comment
Share on other sites

define('TEXT_INFORMATION', 'Some text with a link to <a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . 'PRIVACY' . '</a> And a bit more text.');

 

Since define is a php command you are already in php parse mode use the php tags <?php echo 'Hello'; ?> when you want to parse in html mode.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...