问答题 阅读以下说明,根据要求回答问题。
[说明]
某公司用ASP+Access数据库开发了库存查询系统,该系统用户登录界面如图所示。


问答题 该系统采用B/S三层结构,请根据B/S三层结构的工作过程,将图中空处填写完整。
[*]
[备选答案]
A.Web服务器 B.数据库 C.浏览器 D.数据库服务器
【正确答案】C(或浏览器) A(或Web服务器) D(或数据库服务器) B(或数据库)
【答案解析】
问答题 该系统用户登录界面文件名为login.asp,用户输入的数据由check.asp文件判断。下面是login.asp的部分代码,请根据题目说明,将空处补充完成。
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>查询系统</title>
<script.language="JavaScript">
<!--______ chk(theForm) {
if(theForm.admin_name.value==""}{
alert("请输入管理账号!");
theForm.admin_name.focus();
retumR(falSe);
}
if(theForm.admin_pass.value==""}{
alert("请输入管理密码!");
theForm.admin_pass.focus();
return(false);
}
return ______;
//--></script></head>
<body>
<table cellSpacing=1 ceIIPadding=5 width=460 border=0>
<form.action="______? action=login" method=post nSubmit="return chk(this)"><tbody>……
<tr>
<td align=right width=60 height=30>用户名:</td>
<td height 30><input type=______ name=admin name></td></tr>
<tr>
<td alignrightheight 30>密    码: </td>
<td height 30><input type=______ name=admin_pass></td></tr>
<tr>
<td align=right>验证码:</td>
<td><input maxLength=4 name=VerifyCode><img src="yz.asp"bordeF'0' onClick "this.src='yz.asp'" alt='点刷新验证码'/></td></tr>
<tr align middle>
<td colSpan=2 height=40><input type=______ value="提交">
<input class=btn type="______" value="取消"></td>……
</body>
</html>
A.password B.reset C.check.asp D.true
E.text F.submit G.function
【正确答案】G(或function) D(或true) C(或check.asp) E(或text) A(或password) F(或submit) B(或reset)
【答案解析】
问答题 下面是登录系统中check.asp的部分代码,请根据login.asp和题目说明,补充完成。
……
<% Usemame=trim(request("admin_name"))
Password=trim(request("______"))
set rs=server.createobject("adodb.recordset")
sql="select * from admin where Usemame='"&Username&"" and Password='"&md5 (Password) & "'"
______. open sql, conn, 1, 3
if rs. ______ then
response.write "<center>" &username&"对不起,用户名、密码有误,重新输入"
else……
session("admin_name")=request("admin_name")
response. ______"index.asp"
end if
……
%>
A.rs B.redirect C.eof D.admin pass
【正确答案】D(或admin_pass) A(或rs) C(或eof) B(或redirect)
【答案解析】