题目:阅读以下说明,回答问题1和问题2,将解答填入答题纸对应的解答栏内。
【说明】某信息系统需要在登录页面输入用户名和密码,通过登录信息验证后,跳转至主页面,显示该用户的姓名等个人信息。文件描述如表4-1所示,登录信息和个人信息均存储在Access数据库中,如表4-2、4-3所示。
问题内容:【问题1】(每空1分,共8分)图4-1为登录页面截图。
以下所示页面为用户登录的部分代码片段。请仔细阅读该段代码,将(1)~(8)的空缺代码补齐。
login.asp页面代码片段
......
<body>
<(1)name=”form”method="post” action=”(2)”>
<div class=“title_top”>
<div class=“top_cont”>
<imgsrc=“images-login/pic_2.png”/>
<(3)>
</div>
<divclass=“cont_title”>
<p>信息管理平台</p>
</div>
<div class=“box”>
<divclass="text">
<divclass="a">
<span>用户名</span>
<input type=”(4)” name=“(5)”/>
</div>
<div class=”b”>
<span>密码</span>
<input type=”password ”name=”(6)”/>
</div>
<div class=”c”>
<input type=‘’submit" id=’’buttonn” name=“button” vlaue=”登录”/>
</div>
</div>
</div>
<divclass=”lg_nav”>
</div>
</form>
<(7)>.
.....loginCheck.asp页面代码片段
login_Name=request.form(“login_Name”)
passwd=request.form(“passwd”).
.....略去关键字符过滤代码
sql=”selectid_Login,passwdfromuserLoginwherelogin_Name=‘"(8)login_Name&”‘“session(“id_Login")=id_Login
......
(1)~(8)的备选答案:
A.passwd
B.text
C./body
D.form
E./div
F.loginCheck.asp
G.login_Name
H.&
【问题2】(每空1分,共7分)图4-2为用户登录后的页面截图。
以下所示页面为用户登录后显示用户信息的部分代码片段。请仔细阅读该段代码,将(9)~(10)的空缺代码补齐。
default.asp页面代码片段
说明:conn为Connect对象,rs为RecordSet对象
<%
......
id_Login=session(“id_Login”)(9)注释:从session中获取该用户的登录ID
sql=“select (10),gender,telephone,address from userinfo where (11)=’”&id_Login&”‘“
rs.open(12),conn
user_Name="”
gender=“”
telephone=“”
address=“”
if not(13)Then
user_Name=rs(“user_Name”)
gender=rs('’gender”)
telephone=rs(“telephone”)
address=rs(“address”)
EndIf
......
%>
......
<table width="400"border="1”align=”center”cellpadding=”0”cellspacing=”0”>
<tr>
<td(14)height=”30”align=”center”>用户信息</td>
</tr>
<tr>
<td width=“50%”height=”30”align=”center”>姓名</td〉
<tdalign=”center”<%=user_Name%></td>
</tr>
<tr>
<tdheight=”30”align=”center”〉性别</td>
<tdalign=”center”><%=gender%>
</td>
</tr>
<tr>
<tdheight=”30”align=”center”>电话</td>
<tdalign=”center”><%=telephone%></td>
</tr>
<tr>
<td height=”30”align=”center”>联系地址</td><td align=”(15)”><%=address%></td>
</tr>
</table>
......
(9)~(15)的备选答案:
A.’
B.left
C.rs.eof()
D.sql
E.user_Name
F.id_Login
G.colspan="2"