你好,欢迎访问远方教程PC版!
广告位招租
网站首页 >> PHP教程 >> PHP实例教程 >> 文章内容

php网页生成验证码实现程序(第3页)

[日期:2014-11-16]   来源:远方教程  作者:远方教程   阅读:5287次[字体: ] 访问[旧版]
 捐赠远方教程 

        checkcode.php文件如下

 

        代码如下

?<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
ini_set('display_errors', 'Off');
session_start();
if((strtoupper($_POST["code"])) == strtoupper(($_SESSION["VerifyCode"]))){
print("验证码正确,");
}else{
print("验证码错误,");
}
echo "提交的验证码:".strtoupper($_POST["code"]).",正确的验证码:".strtoupper($_SESSION["VerifyCode"]);
?>

第1页 第2页 第3页
图片展示
 
相关评论
站长推荐