登录注册模块代码Word文档格式.doc

上传人:wj 文档编号:6847571 上传时间:2023-05-07 格式:DOC 页数:11 大小:44KB
下载 相关 举报
登录注册模块代码Word文档格式.doc_第1页
第1页 / 共11页
登录注册模块代码Word文档格式.doc_第2页
第2页 / 共11页
登录注册模块代码Word文档格式.doc_第3页
第3页 / 共11页
登录注册模块代码Word文档格式.doc_第4页
第4页 / 共11页
登录注册模块代码Word文档格式.doc_第5页
第5页 / 共11页
登录注册模块代码Word文档格式.doc_第6页
第6页 / 共11页
登录注册模块代码Word文档格式.doc_第7页
第7页 / 共11页
登录注册模块代码Word文档格式.doc_第8页
第8页 / 共11页
登录注册模块代码Word文档格式.doc_第9页
第9页 / 共11页
登录注册模块代码Word文档格式.doc_第10页
第10页 / 共11页
登录注册模块代码Word文档格式.doc_第11页
第11页 / 共11页
亲,该文档总共11页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

登录注册模块代码Word文档格式.doc

《登录注册模块代码Word文档格式.doc》由会员分享,可在线阅读,更多相关《登录注册模块代码Word文档格式.doc(11页珍藏版)》请在冰点文库上搜索。

登录注册模块代码Word文档格式.doc

conn 

nothing

response.write 

数据库连接出错,请检查conn.asp中的连接字符串。

response.end

end 

if

function 

closedb

conn.close

conn=nothing

function

%>

dim 

badword

badword="

|and|select|update|chr|delete|%20from|;

|insert|mid|master.|set|chr(37)|="

request.querystring<

>

chk=split(badword,"

|"

for 

each 

query_name 

in 

request.querystring

i=0 

to 

ubound(chk)

instr(lcase(request.querystring(query_name)),chk(i))<

script 

language=javascript>

alert('

传参错误!

参数 

query_name&

的值中包含非法字符串!

\n\n'

);

location='

request.servervariables("

http_referer"

)&

/script>

reg.asp

!

--#i 

nclude 

file="

conn.asp"

-->

request("

action"

)="

reg"

rs=server.createobject("

adodb.recordset"

rs.open 

select 

from 

user 

where 

name='

trim(request("

name"

))&

conn,1,1

rs.recordcount>

language='

javascript'

window.alert('

您输入的用户名已存在,请返回重新输入!

history.back(-1);

response.end()

sql="

user"

sql,conn,1,3 

rs.addnew

rs("

)=trim(request.form("

))

pwd"

)) 

wenti"

daan"

rs.update

rs.close

rs=nothing

注册成功,点击确定立即登录!

location.replace('

login.asp'

html>

head>

meta 

http-equiv="

content-type"

content="

text/html;

charset=gb2312"

title>

无标题文档<

/title>

/head>

body>

top.asp"

table 

width="

90%"

border="

1"

align="

center"

cellpadding="

10"

cellspacing="

0"

tr>

td>

用户注册

form 

name="

form1"

method="

post"

action="

?

action=reg"

onsubmit="

return 

chkform(this)"

347"

5"

td 

142"

用户名<

/td>

179"

input 

type="

text"

id="

/tr>

密码<

password"

密码提示问题<

密码提示答案<

colspan="

2"

submit"

value="

注册"

reset"

重置"

/table>

/form>

/body>

/html>

top.asp

href="

/webjx/"

;

index.asp"

首页<

/a>

session("

reg.asp"

注册<

login.asp"

登陆<

pwd.asp"

忘记密码?

else 

欢迎您<

%=session("

)%>

, 

loginout.asp"

注销登陆<

jiami.asp"

加密页<

br>

login.asp

用户登陆

loginok.asp?

action=login"

116"

登陆"

303"

,您已经成功登陆<

loginok.asp

session.timeout=30

login"

name=trim(request.form("

pwd=trim(request.form("

or 

pwd="

response.redirect 

("

name&

and 

pwd='

pwd&

sql,conn,1,1

not 

rs.eof 

)=name

response.redirect"

edit.asp"

else

error.asp"

loginout.asp

退出登陆成功!

location.href('

index.asp'

pwd.asp

p>

找回密码<

/p>

pwd2.asp?

action=pwd"

398"

130"

请输入用户名<

168"

62"

查询"

pwd2.asp

找回密码

pwd3.asp"

%=rs("

nbsp;

hidden"

413"

你输入的用户名不存在,请<

javascript:

history.back()"

返回<

重新输入,或者<

%end 

pwd3.asp

daan=trim(request.form("

daan='

daan&

,您的密码<

你输入的密码提示答案不正确,请<

重新输入<

error.asp

登陆失败,请检查用户名和密码是否正确 

edit.asp

edit"

name=session("

sql,conn,3,2 

编辑成功!

edit.asp'

修改资料<

对不起你还没有登陆,请<

或者<

action=edit"

form"

修改"

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 幼儿教育 > 幼儿读物

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2