PHP code example of jolalau / think6-captcha
1. Go to this page and download the library: Download jolalau/think6-captcha library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jolalau / think6-captcha example snippets
if ( ! CaptchaApi::check($code,$key)) {
//验证码错误
}
前端表单提交:code、key