谁能给我个可执行的无错的ASP用户登陆代码,感谢了!!!!

来源:百度知道 编辑:UC知道 时间:2024/07/01 03:41:06
最好是全套的 index.htm check.asp conn.asp login.asp error.asp 的代码.十分感谢,要的很急.谢谢 .
数据库是连接ACCESS的,最好带数据库文件.

index.asp
这个都做不了 那就别做了 呵呵
主要说一说chklog.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn.asp" -->
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("database/bynha.mdb")
Dim UserName,PassWord
UserName=Request.Form("user")
PassWord=Request.Form("pwd")
YanZheng=Request.Form("shuzi")
If UserName="" or PassWord="" Then
Response.Write ("<script>alert('会员登陆失败!\n\n错误原因:会员帐号和密码未填。');history.back();</script>")
Response.end
End If

If YanZheng="" Then
Response.Write ("<script>alert('会员登陆失败!\n\n错误原因:验证码未填写。');history.back();</script>")
Response.end
End If

if Instr(Us