So there are two problems that should be solved:
1 - Place the error message in the field of the email.
2 - In the email field, remove the spaces at the beginning and at the end of the field, with the specified function.
Thanks a lot for the help.
if ( ( $contactclass->collectSecurity() == true ) && extension_loaded('gd') ) {
mt_srand((double)microtime()*10000);
$random_num = mt_rand(0, 100000);
$security = "<img src='getgfx.php?random_num='".$random_num."' border='1' alt='"._CT_SECURITY_CODE."' title='"._CT_SECURITY_CODE."'> "
."<img src='images/no-spam.jpg' alt='"._CT_NO_SPAM."' title='"._CT_NO_SPAM."'>";
// show the security block and input field
$security_graphic = new XoopsFormLabel( _CT_SECURITY_CODE, $security );
$contact_form->addElement( $security_graphic );
$type_security = new XoopsFormText( _CT_SECURITY_TYPE, "securityType", 10, 6 );
$contact_form->addElement( $type_security, true );
$security_hidden = new XoopsFormHidden( "securityHidden", $random_num );
$contact_form->addElement( $security_hidden );
}
edipinho@rstche:/opt/lampp/htdocs/x260a32/xoops_lib$ composer install
PHP Fatal error: Call to undefined function Composer\Json\json_decode() in phar:///usr/local/bin/composer/src/Composer/Json/JsonFile.php on line 147
Fatal error: Call to undefined function Composer\Json\json_decode() in phar:///usr/local/bin/composer/src/Composer/Json/JsonFile.php on line 147
edipinho@rstche:/opt/lampp/htdocs/x260a32/xoops_lib$