Hi,
I want to use the Captcha in my registration form, But It always give me Captcha verificationerror . what's the problem?
It's the default code:
/* SECURITY CHECK */
if ($mainframe->getCfg('captcha')) {
$code = getEncString(trim( mosGetParam($_POST, 'code', '')));
if ($code != $_SESSION['captcha']) {
elxError(_E_INV_SECCODE, 1);
return;
}
}
I changed this line of the code :
$code = getEncString(trim( mosGetParam($_POST, 'code', '')));
to:
$code = getEncString(trim( mosGetParam($_POST, 'code')));
and It does'nt give that error anymore, I red about the third parameter of the mosGetParam and It said that the third one is optional, Is it work now? I mean doeas it check the captcha ?
thank you
