And then put this into the .php file that handles the form data…
<?php session_start(); include_once $_SERVER['DOCUMENT_ROOT'] . '/securimage/securimage.php'; $securimage = new Securimage(); if ($securimage->check($_POST['captcha_code']) == false) { // the code was incorrect // handle the error accordingly with your other error checking
// or you can do something really basic like this die('The code you entered was incorrect. Go back and try again.'); }
Those who are interested in having a captcha plugin could try http://www.magentocommerce.com/extension/packages/module/4001/outsourceonline_captcha . Its independant captcha (not using ReCaptcha service).AJAX verification is done before the form is posted so data is not lost in case the security code is wrong.In addtion you can choose to enable spam checking in backend with botscout.com API
the problem with OutsourceOnline Captcha is that it disrupts the forms for “Create an Account”, and insted of having it as normal i get the form all smashed to the left.
the problem with OutsourceOnline Captcha is that it disrupts the forms for “Create an Account”.
Can you elaborate on what you mean?
Is this a documented problem.
The reason that I ask is that I am having trouble with customers creating accounts during checkout and I am trying to track down the cause of the problem.
You may use Magento Spam and Bot Protection. It will place a configurable CAPTCHA on your contact form, registration form, tell friend form, and review form. If you want, check out the Spam and Bot Protection demo.