• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: 小 中 大 | 推荐给好友 上一篇 | 下一篇

请教一个问题!

发布: 2007-6-30 18:56 | 作者: admin | 来源: | 查看: 13次 | 进入软件测试论坛讨论

领测软件测试网 (问题就是从第一个登陆界面无法成功登陆,显示页

面三!)



1.asp

<html>

<head>
<title>请您输入您的用户名及密码!</title>

</head>
<body bgcolor="#ffff00" text="#FFFFFF">
<form name=form method=post

action=2.htm>
<tr>
<td

background="../bj/74.gif" colspan="2"

height="25">
<div align="center"

class="13white">会员登录</div>
</td>
</tr>

<tr>
<td width="41%" height="30">

 会员ID号: </td>
<td width="59%" height="30">
<input type=text

name=username2 size=15>
</td>
</tr>
<tr>
<td width="41%">  密  码

:</td>
<td width="59%">
<input type=password

name=password2 size=15>
</td>
</tr>
<tr>
<td colspan="2" height="37">
<div align="center">
<input type=submit

name=Submit2 value=登录>
<input type=reset

name=reset2 value=重写>
</div>
</td>
</tr>
</body>

</html>



2.asp



<%@language=vbscript%>
<%
Function checkpassword(name,password)
conn="driver={microsoft access driver

(*.mdb)};dbq="&server.mappath("moneyhy.mdb")
sql="select * from moneyhy where

idname=‘’"&name&"‘’ and pwd=‘’"&password&"‘’"
Set rs=server.createobject

("adodb.recordset")
rs.open sql,conn
If rs.eof then
checkpassword=false
Else
checkpassword=true
End If
End Function
%>
<%

If isempty(session("passed")) then

session("passed")=false


session("vipusername")=request.form("username"

)


session("vippassword")=request.form("password"

)
Dim n,p
n=session("vipusername")
p=session("vippassword")
If n="" or p="" then
response.write "用户名或密码不能为空,请填完

整!<a href=history.back 1>返回</a>"
elseif not checkpassword(n,p) then
response.write "用户名或密码不正确,请重新输

入!<a href=history.back 1>返回</a>"
else
session("passed")=true
End If
if session("passed")=true then

response.redirect"3.htm"
End If
%>


3.asp

<html>

<head>
<title>登陆成功</title>

</head>
<body bgcolor="#ef1f00" text="#FFFFFF">

欢迎光临!你一成功登陆!
祝你中秋节快乐,一定要记得吃月饼看月亮。。。
</body>

</html>

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:[email protected] 电话:010-51297073

软件测试 | 领测国际 | ISTQB | ISTQB官网 | TMMi | TMMi认证 | 国际软件测试工程师认证 | 领测软件测试网