Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Literal html tag


msibleyj

Recommended Posts

Posted

In cc_validation.php, the error message is output with the literal <br> tags in the message, rather than a line break. How do I fix that?

 

Here is the code from english.php:

 

define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'The first four digits of the number entered are: %s<br>If that number is correct, we do not accept that type of credit card.<br>If it is wrong, please try again.');

Posted

I think you are trying to use HTML tags in PHP code.

 

Try editing the code as such:

define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', '"The first four digits of the number entered are: %s"
echo "<br> If that number is correct, we do not accept that type of credit card. <br>"
echo "If it is wrong, please try again."');

 

I haven't tried it for syntax or anything, but something like that should help to not break it.

 

Rob

Rob Bell - Inspired Graphix

Customising osCommerce in Australia, and the world!

View my profile for web and email links.

 

I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture.

However viewing my profile may provide links to my website or something like that which you may find useful.

Archived

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

×
×
  • Create New...