Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using Fast Secure Contact Form plugin to create contact form widget.It working fine . Now i like to change captcha appearance.

Original captcha generated by plugin

fs contact form generates captcha

But, I need to change it design like below

enter image description here

Any option available or any other ways to do this !

Thanks in advance

share|improve this question
add comment

1 Answer

First, you should know that a image like that is very easy to read by almost any OCR. The first one is much more hard to crack.

Anyway, if you don't want to hack the existing plugin, you can use Really Simple Captcha, it looks exactly like that.

In your form:

<?php
 $captcha_instance = new ReallySimpleCaptcha();
 $prefix = mt_rand();
 $word = $captcha_instance->generate_random_word();
 $image = $captcha_instance->generate_image($prefix, $word);
?>

<input type="text" name="captcha" id="captcha" value="" />
<input type="hidden" name="captcha-id" value="<?php echo $prefix; ?>" />
<img src="<?php echo $image; ?>" width="72" height="24" />

after your form is submitted:

$captcha_instance = new ReallySimpleCaptcha(); 
if(!$captcha_instance->check($_POST['captcha_id'], $_POST['captcha'])) die('wrong captcha!');

// captcha ok, remove the image
$captcha_instance->remove($captcha_id);
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.