// register the field
$this->_registerField( $name, $fld, $title );
if (!$this->isCorrect())
$this->setValue($name, "", true);
}
?>
Another question:
If you don't use the standart mask, the captcha field can be at wrong position. Why there is no funtion to change FH_LINE_MASK which is used in captcha field?
Showing an empty field when it's not correct is a good point.
I'll alter that in a next release.
Altering the addLine by a function is something we will think about.
For now I changed the manual pointing out that CapthaField uses Addline and the posibility to alter the FH_LINE_MASK in the config file.
I changed the way FormHandler places the image of the captcha fiedl.
It now uses the imagebutton function to place the image.
That way the correct mask is used.
Changed at 02 December 08 / 08:35
Bugfixing Captchfield:
In my opinion the require in the captcha-validator is not correct. Can it be possible you have to write:
Another point:
It is not possible to use 2 captachfields in one form (I also don't know who needs :-) ). The require in validator-class causes a fatal error. I repaired the error by replacing by 'require_once'. But validator fails!
// register the field
$this->_registerField( $name, $fld, $title );
// empty the field if the value was not correct.
if (!$this->isCorrect())
{
$this->setValue($name, "", true);
}
}
else
trigger_error(
"Only one captchafield in a form",
E_USER_WARNING
);
}
?>
Another point:
It is not possible to use 2 captachfields in one form (I also don't know who needs :-) ). The require in validator-class causes a fatal error. I repaired the error by replacing by 'require_once'. But validator fails!
Hello, I'm again. Using the FH_FHTML_DIR in the require-statement is not correct. The FH_FHTML_DIR is a url-link to the folder, NOT a link on the filesystem!
All require-statements in FH exclude editor-field works with FH_INCLUDE_DIR, which is set by