Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
README.md 684 Bytes
Copy Edit Web IDE Raw Blame History
hooray authored 2017-06-17 09:37 . 更新readme

clicaptcha

这是一个基于PHP的jQuery中文点击验证码插件

效果图

调用方式

<input type="hidden" id="clicaptcha-submit-info" name="clicaptcha-submit-info">
$('#clicaptcha-submit-info').clickCaptcha({
    src: '../clicaptcha.php',
	success_tip: '验证成功!',
	error_tip: '未点中正确区域,请重试!',
	callback: function(){
		//...
	}
});
//后端进行二次验证
require('../clicaptcha.class.php');
$clicaptcha = new clicaptcha();
echo $clicaptcha->check($_POST['clicaptcha-submit-info']) ? '后端二次验证成功' : '后端二次验证失败';

Comment ( 0 )

Sign in for post a comment