asp后台管理页登陆代码问题
<!--#includefile="Conn.asp"--><%ifRequest.QueryString("no")<>"eshop"then%><html><head...
<!--#include file="Conn.asp"-->
<%if Request.QueryString("no")<>"eshop" then%>
<html>
<head>
<title>桑尼丝企业网站后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Inc/ManageMent.css" rel="stylesheet" type="text/css">
</head>
<body>
<FORM ACTION="Login.asp?no=eshop" METHOD="post">
<br>
<center>
<table width="300" border="0" cellpadding="0" cellspacing="2" class="HeaderTdStyle">
<tr>
<td height="30" colspan="2" align="center">
<b>桑尼丝企业网站后台管理系统登陆</b>
</td>
</tr>
<tr>
<td height="30" align="right">管理帐号:</td>
<td>
<input name="Name" size=12 maxlength="20">
</td>
</tr>
<tr>
<td height="30" align="right">管理密码:</td>
<td>
<input name="Pwd" type="password" size=12 maxlength="20">
</td>
</tr>
<tr>
<td height="30" colspan="2" align="center">
<input name="Submit" type="submit" value="登陆系统">
</td>
</tr>
</table>
<p></p>
<p></p>
<p></p>
<p></p>
<p>
Design By 强子
</p>
</center>
</form>
</body>
</html>
<%else%>
<%
pwd = request.form("pwd")
name = request.form("name")
Set rs = Server.CreateObject("ADODB.Connection")
sql = "select * from Manage_User where UserName='"&name&"'And PassWord= '"& encrypt(pwd) &"'"
Set rs = conn.Execute(sql)
If Not rs.EOF = True Then
if instr(name,"'")>0 then
Response.Redirect "Loginsb.asp?msg=您输入了危险字符,请再次输入!"
response.End()
end if
Session("Name") = rs("UserName")
Session("pwd") = rs("PassWord")
Response.Redirect("Manage.asp")
Else
Response.Redirect "Loginsb.asp?msg=您输入了错误的帐号或口令,请再次输入!"
response.End()
end if
%>
这是等界面的代码一直都是这个错误
后台其他界面打开也是这个错误
Script error detected at line 31.
Source line: Response.Write "
Description: 未结束的字符串常量 展开
<%if Request.QueryString("no")<>"eshop" then%>
<html>
<head>
<title>桑尼丝企业网站后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Inc/ManageMent.css" rel="stylesheet" type="text/css">
</head>
<body>
<FORM ACTION="Login.asp?no=eshop" METHOD="post">
<br>
<center>
<table width="300" border="0" cellpadding="0" cellspacing="2" class="HeaderTdStyle">
<tr>
<td height="30" colspan="2" align="center">
<b>桑尼丝企业网站后台管理系统登陆</b>
</td>
</tr>
<tr>
<td height="30" align="right">管理帐号:</td>
<td>
<input name="Name" size=12 maxlength="20">
</td>
</tr>
<tr>
<td height="30" align="right">管理密码:</td>
<td>
<input name="Pwd" type="password" size=12 maxlength="20">
</td>
</tr>
<tr>
<td height="30" colspan="2" align="center">
<input name="Submit" type="submit" value="登陆系统">
</td>
</tr>
</table>
<p></p>
<p></p>
<p></p>
<p></p>
<p>
Design By 强子
</p>
</center>
</form>
</body>
</html>
<%else%>
<%
pwd = request.form("pwd")
name = request.form("name")
Set rs = Server.CreateObject("ADODB.Connection")
sql = "select * from Manage_User where UserName='"&name&"'And PassWord= '"& encrypt(pwd) &"'"
Set rs = conn.Execute(sql)
If Not rs.EOF = True Then
if instr(name,"'")>0 then
Response.Redirect "Loginsb.asp?msg=您输入了危险字符,请再次输入!"
response.End()
end if
Session("Name") = rs("UserName")
Session("pwd") = rs("PassWord")
Response.Redirect("Manage.asp")
Else
Response.Redirect "Loginsb.asp?msg=您输入了错误的帐号或口令,请再次输入!"
response.End()
end if
%>
这是等界面的代码一直都是这个错误
后台其他界面打开也是这个错误
Script error detected at line 31.
Source line: Response.Write "
Description: 未结束的字符串常量 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询