- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
1、(index.asp 用户登陆页面)
!-- #include file=conn.asp --
!-- 悠悠长假期 --
html
head
meta http-equiv=Content-Type content=text/html; charset=gb2312
title会员/title
style type=text/css
!--
body,td,th {
font-family: 宋体;
font-size: 14px;
}
--
/style
/head
body
center
p会员注册系统/p
form name=form1 method=post action=login.asp
table width=34% border=0
tr
td width=33% height=30用户名:/td
td width=67% height=30input name=username type=text id=username size=15/td
/tr
tr
td height=30密 码:/td
td height=30input name=password type=password id=password size=15/td
/tr
tr
td colspan=2 align=centerinput type=submit name=Submit value=确定
input type=reset name=Submit value=重置/td
/tr
tr
td colspan=2a href=reg.asp target=_self注册/a/td
/tr
/table
/form
/center
/body
/html
2、(login.asp 用户数据处理文件)
!-- #include file=conn.asp --
%
打开数据库判断用户是否存在,info为表名,username为字段名
set rsc=server.createobject(adodb.recordset)
sqlc=select * from info where username=request.Form(username) and password=request.Form(password)
rsc.open sqlc,conn,1,1
session(username)=rsc(username)
session(password)=rsc(password)
session.Timeout=30
set rsc=nothing
response.Redirect(change.asp)
如果用户不存在,session(username)为空
%
3、(change.asp 用户信息修改页面)
!-- #include file=conn.asp --
html
head
meta http-equiv=Content-Type content=text/html; charset=gb2312
title修改/title
style type=text/css
!--
body,td,th {
font-size: 14px;
}
--
/style/head
center
body
br
%
set rsc=server.createobject(adodb.recordset)
sqlc=select * from info where username=session(username) and password=session(password)
rsc.open sqlc,conn,1,1
nr=rsc(password)
username=rsc(username)
password=rsc(password)
sex=rsc(sex)
qq=rsc(qq)
mail=rsc(mail)
add=rsc(add)
personalinfo=rsc(personalinfo)
vv=rsc(ntime)
set rsc=nothing
if nr= then
response.Redirect(index.asp)
end if
if strcomp(nr,request.Form(password))=0 then
response.Write(欢迎你!request.Form(username))
response.Write(你是在vv注册的)
session(username)=request.Form(username)
end if
if session(username)= then
response.Redirect(index.asp)
end if
%
form na
您可能关注的文档
最近下载
- 湖南省名校联考联合体2025-2026学年高一上学期10月联考语文试卷含答案.pdf VIP
- 部分常用岩土物理力学参数经验数值.doc
- 中南大学网校马克思主义基本原理考试.doc VIP
- 浙江省精诚联盟2025-2026学年高一上学期10月联考生物试卷含答案.docx VIP
- 2025-2026学年广东省广州市第一中学高一上学期10月月考数学试卷含详解.docx VIP
- 抖音爸爸博主“新父职”的数字实践研究_.pdf VIP
- 演示文稿青春期生长发育.ppt VIP
- 2023年中南财经政法大学公共课《马克思主义基本原理概论》期末试卷B(有答案).docx VIP
- 2024-2025学年广东省珠海市文园中学九年级(下)开学物理试卷.docx VIP
- 保健品营销策划.pdf VIP
文档评论(0)