试题四(15分)
阅读下列说明,回答问题1至问题2,将解答填入答题纸的对应栏内。
【说明】
某信息系统需要在登录页面输入用户名和密码,通过登录信息验证后,跳转至主页面,显示该用户的姓名等个人信息。文件描述如表4-1所示,登录信息和个人信息均存储在Access数据库中,如表4-2和表4-3所示。
【问题1】(每空1分,共8分)
图4-1为登录页面截图。
以下所示页面为用户登录的部分代码片段。请仔细阅读该段代码,将( )~( )的空缺代码补齐。
login.asp页面代码片段

loginCheck.asp页面代码片段
login_Name=request.form(“login_Name”)
passwd=request.form(“passwd”)
……略去关键字符过滤代码
sql=“select id_Login,passwd from userLogin where login_Name=‘ "( )login_Name &“ ‘ ”
session(“id_Login")=id_Login
……
( )~( )的备选答案:
A.passwd B.text C./body D.form
E./div F.loginCheck.asp G.login_Name H.&
【问题2】(每空1分,共7分)
图4-2为用户登录后的页面截图。
以下所示页面为用户登录后显示用户信息的部分代码片段。请仔细阅读该段代码,将( )~( )的空缺代码补齐。
default.asp页面代码片段
说明:conn为Connect对象,rs为RecordSet对象
<%
……
id_Login=session(“id_Login”) ( )注释:从session中获取该用户的登录ID
sql=“select( ),gender,telephone,address from userlnfo where( )=’ ”&id_Login &” ‘ “
rs.open( ),conn
user_Name="
gender=“”
telephone=“”
address=“”
if not( )Then
user_Name=rs(“user_Name”)
gender=rs("’gender”)
telephone=rs(“telephone”)
address=rs(“address”)
End If
……
%>
……
<table width="400"border="1”align=“center”cellpadding=“0”cellspacing=“0”>
<tr>
<td( )height=“30”align=“center”>用户信息</td>
</tr>
<tr>
<td width=“50%”height=“30”align=“center”>姓名</td〉
<td align=“center”<%= user_Name%></td>
</tr>
<tr>
<td height=“30”align=“center”〉性别</td><td align=“center”><%=gender%></td>
</tr>
<tr>
<td height=“30”align=“center”>电话</td><td align=“center”><%=telephone%></td>
</tr>
<tr>
<td height=“30”align=“center”>联系地址</td><td align=“( )”><%=address
%></td>
</tr>
</table>u2003
……
( )~( )的备选答案:
A.’ B.left C.rs.eof( ) D.sql
E.user_Name F.id_Login G.colspan="2"