Hello
Im testing my contact form and its giving me this message:
THE SECURITY CODE YOU ENTERED DID NOT MATCH. PLEASE TRY AGAIN.
I cannot see the option to add a code, nor in the theme options to enable or disable this.
Please advise.
Thanks,
Renee.
This topic has 9 replies, 4 voices, and was last updated 9 years, 7 months ago ago by Stan Russell
Hello
Im testing my contact form and its giving me this message:
THE SECURITY CODE YOU ENTERED DID NOT MATCH. PLEASE TRY AGAIN.
I cannot see the option to add a code, nor in the theme options to enable or disable this.
Please advise.
Thanks,
Renee.
Hello,
Have you edited Contact form template or other theme files?
May we reupload them?
Best regards,
Jack Richardson.
This rebuild I have not used any demo pages.
I have only selected the contact form page template option for the page I created.
I have not edited anything.
I guess you can upload it. I’m not sure why though.
Hello,
I’ve edited contacts.php file.
Please check Contact page now.
Best regards,
Jack Richardson.
Hey,
I have the same problem as Renee. Could you please tell me what I have to change in contact.php to add a security code gap to the form?
Kind regards,
Mirjam Hut
Hello @gerardpelders,
You need add this code in contacts.php file after the line 239:
<?php
$captcha_instance = new ReallySimpleCaptcha();
$activeColor = (etheme_get_option('activecol')) ? etheme_get_option('activecol') : '#d7a200';
$captcha_instance->bg = $rgb = hex2rgb($activeColor);
$word = $captcha_instance->generate_random_word();
$prefix = mt_rand();
$img_name = $captcha_instance->generate_image( $prefix, $word );
$captcha_img = ETHEME_CODE_URL.'/inc/really-simple-captcha/tmp/'.$img_name;
?>
<div class="captcha-block">
<img src="<?php echo $captcha_img; ?>">
<input type="text" name="captcha-word" class="captcha-input">
<input type="hidden" name="captcha-prefix" value="<?php echo $prefix; ?>">
</div>
Best regards,
Jack Richardson.
Can this be resolved without me having to edit the php files? It’s just a contact form. I am not a coder.
Thanks,
Renee.
Hi Jack
I have seen and testing this is now working. You can close this ticket.
Thanks
Renee.
Hello DoubleHapp,
we are happy that your problem is solved! Have a nice day!
Regards,
Stan Russell.
The issue related to '‘Contact Page Security Code Message’' has been successfully resolved, and the topic is now closed for further responses