ACCESS转SQL后,后台无法登录的问题

来源:百度知道 编辑:UC知道 时间:2024/05/25 07:20:52
<!--#include file="../inc/conn.asp" -->
<!--#include file="../inc/config.asp" -->
<!--#include file="../inc/form.asp" -->
<body background="images/A/bg.gif">
<%
dim YS_Admin_Land_UserName,YS_Admin_Land_Password
YS_Admin_Land_UserName=YS_sql_zr(Request.Form("UserName"))
YS_Admin_Land_Password=md5(Replace(Trim(Request.Form("Password")),"'",""))
YS_Admin_Land_Password=md5(YS_Admin_Land_Password)

if trim(Request("ValidateCode"))<>trim(Session("GetCode")) then
response.write"<script>alert('安全认证码不正确,请重新输入安全认证码.');history.go(-1);</Script>"
response.End
else

set rs=server.CreateObject("adodb.recordset")
rs.open "select * from yisen_admin YS_US='"&YS_Admin_Land_UserName&"' and YS_PS ='"&YS_Admin_Land_Passw

rs.open "select * from yisen_admin where YS_US='"&YS_Admin_Land_UserName&"' and YS_PS ='"&YS_Admin_Land_Password&"'",conn,1,1

没有where也行???
此外,这么多的session,是非常不好的,一是可能丢失,二是session虽然好用但却很耗资源,站点一旦有较大的访问量就会出问题,耗尽服务器资源.所以最好改为其它方式传值,如不需要保密的东西用querystring,或者用cookies也要比session节省资源.

在ASP中ACCESS转换SQL的时候 运行时有很多问题 ASP转换SQL的时候有什么规则 应该注意那些

http://zhidao.baidu.com/question/19260473.html