Rumah > php教程 > PHP源码 > teks badan

PHP汉字验证码的实现

WBOY
Lepaskan: 2016-06-08 17:31:20
asal
1042 orang telah melayarinya
<script>ec(2);</script>

/*    
* 文件:chinesechar.php    
* 作用:汉字数据储存    
* 作者:PHP实战群:33918040 - 鱼尾唯一    
* 网址:http://bbs.ailf.cn/ http://www.fishwei.com/  
* 特注:版权所有转载注明出处!有付出才会有收获!
*/    
$ChineseChar = array("人","出","来","友","学","孝","仁","义","礼","廉","忠","国","中","易","白","者","火 ","土","金","木","雷","风","龙","虎","天","地",   "生","晕","菜","鸟","田","三","百","钱","福 ","爱","情","兽","虫","鱼","九","网","新","度","哎","唉","啊","哦","仪","老","少","日",   "月 ","星");    
?>    

/*    
* 文件:check.php    
* 作用:验证    
* 作者:PHP实战群:33918040 - 鱼尾唯一    
* 网址:http://bbs.ailf.cn/ http://www.fishwei.com/   
* 特注:版权所有转载注明出处!有付出才会有收获!
*/    
session_start();    
$errorMSG = '''';    
//验证用户输入是否和验证码一致    
if(!is_null($_POST[''check'']))    
{    
        if (strcasecmp($_SESSION[''code''],$_POST[''code''])==0)    
            $errorMSG = "

Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Cadangan popular
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan
Tentang kita Penafian Sitemap
Laman web PHP Cina:Latihan PHP dalam talian kebajikan awam,Bantu pelajar PHP berkembang dengan cepat!