How can We verify Captcha with Ajax in Codeigniter?

Author: Zeeshan Rasool  |  Last updated on AJAX, Codeigniter, Web Development

[ad#co-4]

Captcha is necessary part of any form. But if we see with end user point of view, a user feels bad when he/she has to give a right verification code and also have to face an error message if it is invalid code. “I don’t like Captcha and even i didn’t design any form with Captcha” ( Said by: AdbulRehman (a creative Graphic Designer ) .

If we give captcha verification using ajax, then it reduces user’s troubles.

We can check captcha on blur event or on submitting a form and alert the user about invalid code entered.

In Codeigniter ( i used it CI in some place ) it is easy to do that:

In first step you will show captcha using CI method in simple way. Example:

In html:

And in your controller:

Recommended WordPress Themes Store



If you enjoyed this post, please consider leaving a comment below or subscribing to the RSS feed to have future articles delivered to your feed reader. You can also follow us on Facebook or Twitter @99Points

This awesome post has been created by 99Points editor's team. You can follow our updates on Twitter and facebook, OR drop an email at 99points.info@gmail.com


Email Subscriber!

Be the first to know about new updates


Advertisement

Friends

Categories


Popular post