0

Hi there,

This is following on from a previous solved thread.

Basically, I have this code:

<td colspan="2" align = "center" style="color:#FF0000; font-weight:bold;">' . ((isset($_GET['error']) and ($_GET['error']=='recaptcha')) ?
 'Error: The captcha was entered incorrectly. Please try again.' : '') . '
</td>

I've now been told that the "Error: The captcha..." message will need to be translated into French and German using the database that this company uses.

Elsewhere in the code, other things are translated like this:

'.$sb->dt('Enquiry Form').'

The '.$sb->dt....' sends the "Enquiry Form" text to the database for translation.

How can I simply incorporate the .$sb->dt into my first bit of code so that the Error message is also sent to the database?

I've tried various methods and keep getting syntax errors (due to my html being in php strings).

Edited by hindu times: n/a

3
Contributors
5
Replies
7
Views
5 Years
Discussion Span
Last Post by jpdeleon
0
<td colspan="2" align = "center" style="color:#FF0000; font-weight:bold;">' . ((isset($_GET['error']) and ($_GET['error']=='recaptcha')) ?
 $sb->dt('Error: The captcha was entered incorrectly. Please try again.') : '') . '
</td>
0

Thanks. That code works without any errors. Unfortunately though, the Error itself still isn't actually being sent to the database.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.