Home  >  Article  >  Backend Development  >  ThinkPHP验证码显示有关问题,求大神解释!

ThinkPHP验证码显示有关问题,求大神解释!

WBOY
WBOYOriginal
2016-06-13 13:00:00776browse

ThinkPHP验证码显示问题,求大神解释!!!
这是代码:

<p>验证码:<input type="text" name="vircode" onkeyup="return login_chkcode( this );" style="width:100px;" maxlength="4" /><img id="login_verifyImg" SRC="__URL__/verify/" onclick="return login_fleshVerify();"   style="max-width:90%" alt="点击刷新验证码" title="点击刷新验证码" /><label id="login_vircode"></label></p>

然后在本地显示正常:

然后传到服务器上之后:

然后ff报错如下:

这个是验证码代码:
function verify() {<br />
        import("ORG.Util.Image");<br />
        Image::buildImageVerify();<br />
    }


请大家帮忙看看,这怎么上传到服务器上之后就不显示了呢??
------解决方案--------------------
function fleshVerify() {
//重载验证码
var timenow = new Date().getTime();
$('#verifyImg').attr("src", "{:U('Admin-Login/verify/')}" + timenow);
}//这是js

 ThinkPHP验证码显示有关问题,求大神解释!
//你是不是没有上传完整啊
------解决方案--------------------
服务器上是否已开 GD库的扩展? 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn