后台管理员登录带验证码,验证码出不来,一直带红XX
这是Login.asp文件的请看下有没有问题<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
option explicit
'强制浏览器重新访问服务器下载页面,而不是从缓存读取页面
Response.Buffer = True
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
'主要是使随机出现的图片数字随机
%>
<HTML>
<HEAD>
<TITLE>管理员登录</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="inc/meta.asp" -->
<LINK href="inc/style.css" rel="stylesheet" type="text/css" media="all">
<script type="text/javascript" src="inc/keyboard.js"></script>
</HEAD>
<BODY >
<form name="loginForm" action="CheckLogin.asp" method="post" style="margin-top:65px;">
<table width="400" border="0" align="center" cellspacing="0" style="border:1px solid #222222;">
<tr>
<td height="14" colspan="2" background="images/top.gif"></td>
</tr>
<tr>
<td height="30" colspan="2" background="images/titlebg.gif"> 系统管理员登录 </td>
</tr>
<tr>
<td height="30" bgcolor="#F5F6FB">
<div align="center">用户名:</div></td>
<td bgcolor="#F5F6FB">
<input name="AdminName" type="text" id="AdminName" size="28" maxlength="25" />
</td>
</tr>
<tr>
<td height="30" bgcolor="#F5F6FB">
<div align="center">密 码:</div></td>
<td bgcolor="#F5F6FB">
<input class="wenbenkuang" onclick= "password1=this;showkeyboard();this.readOnly=1;Calc.password.value=''" name="AdminPwd" type="password" id="AdminPwd" size="30">
</td>
</tr>
<tr>
<td height="30" bgcolor="#F5F6FB"><div align="center">验证码:</div></td>
<td bgcolor="#F5F6FB">
<input name="VerifyCode" type="text" id="VerifyCode" size="5" maxlength="4" />
<img src="inc/checkcode.asp" border="0" alt="验证码,看不清楚?请点击刷新验证码" style="cursor : pointer;" onClick="this.src='inc/checkcode.asp'" />
</td>
</tr>
<tr>
<td height="35" bgcolor="#F5F6FB"> </td>
<td bgcolor="#F5F6FB">
<div align="center">
<input type="submit" name="Submit" value="登 录" />
<input type="reset" name="Reset" value="清 除" />
</div>
</td>
</tr>
<tr>
<td height="14" colspan="2" background="images/end.gif"></td>
</tr>
</table>
</form>
</BODY>
</HTML>