incorrect verification code

adilkassim 15 Sep, 2010
Made a new form and got an error message on submit

The form is meant to replace the default joomla registration form

the form can be accessed at

http://www.edc-smcci.sg/index.php?option=com_chronocontact&task=send&chronoformname=NewRegn

and the error message is

Parse error: syntax error, unexpected ',', expecting T_VARIABLE or '$' in C:\Inetpub\vhosts\edc-smcci.sg\httpdocs\components\com_chronocontact\libraries\chronoform.php(258) : eval()'d code on line 2

1.You have entered an incorrect verification code at the bottom of the form.

Thanks in advance
GreyHead 15 Sep, 2010
Hi adilkassim ,

This looks like an error in the Server-side validation code. What do you have in that box?

Bob
adilkassim 16 Sep, 2010
followed the tutorial on how to create a registration form to replace the default joomla registration form and edited the validation bit as follows

<?php
global,$mainframe;
if(JRequest::getVar('text_7') != JRequest::getVar('text_8'))
return 'Sorry, passwords do not match please try again';
?>


Not familiar with PHP,is it a syntax issue??

Thanks!
GreyHead 16 Sep, 2010
Hi adilkassim,

I don't think that you can use JRequest in an if statement like that - you get a PHP error.
<?php
$text_7 = JRequest::getVar('text_7');
$text_8 = JRequest::getVar('text_8');
if( $text_7 != $text_8 ) {
  return 'Sorry, passwords do not match please try again';
}
?>


Bob
adilkassim 17 Sep, 2010
hi bob

thanks for the code correction. that went well, however i still get the

message "You have entered an incorrect verification code at the bottom of the form.

Did i miss something out

Thanks
GreyHead 17 Sep, 2010
Hi adilkassim,

It looks as though you may have Imageverification set to 'Yes' on the anti-spam tab but haven't included {imageverification} in the Form HTML to display the check image and input box.

Bob
blurev 17 Sep, 2010
Mostly , the problem was this incorrect verification code . In this problem sometimes we don't now any chance to sign-up with that particular thing cause it tells us that we are spammer !😟( Hope for the reply .
Max_admin 20 Sep, 2010
@blurev, I can't understand your post, please explain ?

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.