Header menu

_________________________________________________________________________________

Saturday, 9 August 2014

Ajax Simple Captcha on jquery Dialog form


 

Ajax  Simple Captcha on jquery Dialog form

CAPTCHA  is a type of challenge-response test used in computing to determine whether or not the user is human. Adding captcha to html/php page is simple task . But its not so easy in jquery dialog form for newbies . So lets implement a simple captcha for jquery dialog form.

I will use 4 files :
1. index.php ( Contains html form, javascript code to send ajax request)
2. captcha.php ( Create captcha image)
3. captcheck.php ( Check weather value entered for captcha is right or wrong)
4. post.php ( Page where form submits if captcha validation is fine)
index.php




captcha.php 


captcheck.php 


post.php