网站后台验证码不显示,怎么把验证码取消呢?
发布网友
发布时间:2022-05-01 08:45
我来回答
共3个回答
热心网友
时间:2022-06-26 22:59
<%@ LANGUAGE = VBScript.Encode %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>理想家园企业建站CMS系统</title>
<style>
td { font-size:12px;
font-family:Arial, Helvetica, sans-serif;
color:#141414;}
form { margin:0px;
padding:0px;}
.loginBg{
height:17px;
width:190px;
border:1px solid #c2c6d2;
background:#fff;
margin:1px 0;
font-family:Arial, Helvetica, sans-serif;
color:#000000;
letter-spacing: 1px;
padding-left:2px;
}.loginBg1 { height:17px;
width:190px;
border:1px solid #c2c6d2;
background:#fff;
margin:1px 0;
font-family:Arial, Helvetica, sans-serif;
color:#000000;
letter-spacing: 1px;
padding-left:4px;
}
</style>
</head>
<body style="background-image:url(login/login_bg.gif); background-repeat:repeat">
<form action="Admin_ChkLogin.asp" method="post" name="login" target="_parent" id="login">
<table style="margin-top:5%; " width="515" border="0" align="center" cellpadding="0" cellspacing="0" background="login/login_xbg.gif">
<tr>
<td><img src="login/login_top.gif" width="515" height="92" alt="" /></td>
</tr>
<tr>
<td height="115" align="center" valign="middle"><table width="350" border="0" cellspacing="0" cellpadding="3">
<tr>
<td width="87" align="right">帐 号:</td>
<td width="263" align="left"><span style="width:240px;">
<input name="UserName" type="text" class="loginBg1" id="UserName" />
</span></td>
</tr>
<tr>
<td align="right">密 码:</td>
<td align="left"><input name="Password" type="password" class="loginBg1" id="Password" /></td>
</tr>
<!--< <tr>
<td align="right">验证码:</td>
<td align="left"><table width="88" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input style="width:40px; text-align:center; font-size:15px; font-weight:bold; font-family:Arial, Helvetica, sans-serif; line-height:17px;" name="CheckCode" type="text" id="CheckCode" class="loginBg" /></td>
<td>img src="Inc/checkcode.asp" /></td>
</tr>-->
</table>
</td>
</tr>
<tr>
<td align="right"> </td>
<td align="left"><table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="image" name="imageField" src="login/login_1.gif" /></td>
<td><input name="Submit" type="reset" style="background-image:url(login/login_2.gif); width:68px; height:22px; border:none" value=" " /></td>
</tr>
</table></td>
</tr>
</table>
然后在Admin_ChkLogin.asp文件里找到验证码比对代码删除或注释掉(代码前面加英文单引号 ')
代码大致是:IF CheckCode<>Session(.......) then之类的,具体要看你的具体代码
热心网友
时间:2022-06-26 22:59
" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!--#include file="inc/md5.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理界面</title>
<style type="text/css">
<!--
body {
background-image: url(images/bg.gif);
margin: 0px;
background-repeat: repeat-x;
}
table,td{
font-family:"宋体";
font-size:12px;
}
.inputtext{
border-left:1px solid balck;
border-right:1px solid balck;
border-top:1px solid balck;
border-bottom:1px solid balck;
}
.loginbg {
font-size: 12px;
width: 59px;
height: 26px;
background-image: url(images/login_bg.gif);
border: none;
padding-top: 3px;
color:white;}
-->
</style>
</head>
<body>
<%
dim action
action=trim(request("action"))
select case action
case "chkadmin"
call check()
case "out"
call out()
case else
call main()
end select
sub main()
%>
<script language="javascript">
function checklogin()
{
if(document.login.username.value=='')
{alert('请输入用户名');
document.login.username.focus();
return false
}
if (document.login.password.value=='')
{alert('请输入密码');
document.login.password.focus();
return false
}
}
</script>
<table width="100%" height="98" border="0" cellspacing="0" cellpadding="0">
<form action="login.asp?action=chkadmin" name="login" method="post" onSubmit="return checklogin();">
<tr>
<td> </td>
</tr>
</table>
<table width="50%" align="center" height="34" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/admin_02.gif" width="291" height="34"></td>
</tr>
</table>
<table width="100%" height="30" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="50%" height="261" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><table width="457" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="images/admin_05.gif" width="457" height="40" border="0" usemap="#Map"></td>
</tr>
<tr>
<td width="142" rowspan="3"><img src="images/admin_07.gif" width="142" height="221"></td>
<td width="240" valign="top"><img src="images/admin_08.gif" width="240" height="42"></td>
<td width="75" rowspan="3"><img src="images/admin_09.gif" width="75" height="221"></td>
</tr>
热心网友
时间:2022-06-26 22:59
Admin_ChkLogin.asp这个里面改追问
追答不是全部代码 只是头引用文件