Error If Incorrect Code Is Entered

LikeStuff 06 Jul, 2010
Hi,

I'm not sure why I'm receiving this error. I just installed version 3.1 RC5.5 on Joomla 1.5.18. I did not receive this message prior to this new install. I went through the form and make sure that there are no spaces, dashes, or special characters so now I'm not sure what to do.

You have entered an incorrect verification code at the bottom of the form.
Parse error: syntax error, unexpected T_STRING in /home/.../public_html/components/com_chronocontact/chronocontact.html.php(180) : eval()'d code on line 96

Thanks!!
GreyHead 06 Jul, 2010
Hi LikeStuff,

Looks like a PHP error at line 96 of your Form HTML - what code do you have there?

Bob
LikeStuff 06 Jul, 2010
I have this there:
	<input type="radio" value="$0 - $25,000" name="InvestmentPreferenceQ1" id="InvestmentPreferenceQ1" />$0 - $25,000<br />


Thanks!!
GreyHead 06 Jul, 2010
Hi LikeStuff,

That looks fine to me.

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
LikeStuff 06 Jul, 2010
Thank you for your help. I just sent you the file.
GreyHead 06 Jul, 2010
Hi LikeStuff,

I don't see any error message testing the backup form you sent, or looking at it on your live site?

Bob
LikeStuff 06 Jul, 2010
Hi Greyhead,

Can you try it without entering the captcha code? That's when the error presents itself.
Thanks!!
GreyHead 07 Jul, 2010
Hi LikeStuff,

OK, found it. The problem is the $ signs on those lines (I don't know why though).

Copy and paste the Form HTML into a text editor and replace all $ with $ and the form works OK.


Bob
LikeStuff 07 Jul, 2010
Hi GreyHead,

Thank you for helping!! There appears to be one more issue. In the backend I have "Try to Republish" turned on and it works fine except on the fields with the $ ($) sign. Any idea why this is happening?

Thanks again.
GreyHead 10 Jul, 2010
Hi Likestuff,

I think that you probably need to simplify the values - maybe put the dollars back there, or just leave the numbers without the signs.
<input type="radio" value="0 - 25,000" name="InvestmentPreferenceQ1" id="InvestmentPreferenceQ1" />


Bob
LikeStuff 19 Jul, 2010
Thanks Greyhead. You've been extremely helpful!!
This topic is locked and no more replies can be posted.