litto/captcha
Composer 安装命令:
composer require litto/captcha
包简介
Captcha Validation in PHP Forms
README 文档
README
Simple Captcha for PHP website
How to Install?
You can Install it via composer by typing:-
composer require litto/captcha:v2.0
How it works?
In the form just add:-
<img src="captcha.php" alt="captcha" title="captcha" class="captcha" width="100px" height="50px">
<label for="email2">Enter Code</label>
<input class="form-control" name="txtCode" type="text" value="Captcha">
In the form submission function, just do like this:-
session_start(); $text=$_SESSION["vercode"] ; unset($_SESSION["vercode"]); $captcha = $_POST['txtCode']; if($captcha==$text) { // Save Function }else{ //captcha Validation Error }
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2022-02-07