最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Asp 单页查询数据库!
时间:2022-06-30 10:42:47 编辑:袖梨 来源:一聚教程网
dim rs,sql,x_name,x_pwd,x_count
If Request.Form("do")="ok" Then
If Request.Form("user_name")="" Then
Response.Write("")
Response.End()
Else
x_name = Request.Form("user_name")
End If
'↑ 叛断用户名是否为空!
If Request.Form("user_pwd")="" Then
Response.Write("")
Response.End()
Else
x_pwd = Request.Form("user_pwd")
End If
'↑ 叛断用户密码是否为空!
set rs = Server.Createobject("adodb.recordset")
sql="select * from [user] where user_name='"&x_name&"' and user_pwd='"&x_pwd&"'"
rs.open sql,conn,1,1
if not rs.Eof Then
session("s_name")=rs("user_name")
session("s_shen")=rs("shenfen")
session("s_shi")=rs("shijian")
Response.Redirect "infoin.asp"
Else
Response.Write("")
Response.End()
End If
Else
%>
-->系统登录 |
相关文章
- 最后纪元兑换码是什么 最后纪元最新2025兑换码一览 09-30
- 双点博物馆兑换码分享 双点博物馆最新兑换码2025 09-30
- 消逝的光芒兑换码是什么 消逝的光芒最新2025兑换码大全 09-30
- 边境开拓者兑换码分享 边境开拓者最新2025兑换码一览 09-30
- 燕云十六声活人医馆二楼怎么开锁-活人医馆二楼进入方法 09-30
- 信长之野望新生兑换码是什么 信长之野望最新2025兑换码大全 09-30