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
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
Hi adilkassim ,
This looks like an error in the Server-side validation code. What do you have in that box?
Bob
This looks like an error in the Server-side validation code. What do you have in that box?
Bob
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!
<?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!
Hi adilkassim,
I don't think that you can use JRequest in an if statement like that - you get a PHP error.
Bob
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
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
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
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
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
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 .
@blurev, I can't understand your post, please explain ?
Cheers
Max
Cheers
Max
This topic is locked and no more replies can be posted.