网友您好, 请在下方输入框内输入要搜索的题目:
某留言系统采用ASP+Access开发,其后台管理登录页面如图4-1所示。
图4-1
【问题1】(9分)
以下是该后台管理登录页面login.asp的部分代码,请仔细阅读该段代码,根据图4-1 将(1)~(9)的空缺代码补齐。
<!--include file=“conn.asp”-->
<!--include file=“md5.asp”-->
<!--include file=“bbb.asp”-->
<%
If request.Form(“submit”)=“管理登录”Then
user_name = request.Form(“ (1) ”)
password = request.Form(“ (2) ”)
verifycode = request.Form(“ (3) ”)
If user name =“” Then
Callinfoback(“用户名不能为空!”)
End If
......
Set (4) = server. CreateObject(“adodb.recordset”)
sql = “select * from administrator (5) user_name = “&user_name&”and
password = “&md5(password)””
rs.Open (6) ,conn,1,1
If (7) rs.EOF Then
session(“user_name”)= user_name
response.redirect“information.asp”
Else
Call infoback(“用户名或密码错误!”)
End If
End If
%>
<html >
......
<body>
<form. method=“post”action=“login.asp”id=“login”>
<hl>管理员登录</hl>
<label for=“user_name”>用户名:
<input name=“user_name” type=“text” class=“user_name” id=“uname” size=“25”/>
</label>
<label for=“password“>密码:
<input name=“password”type=“password”id=“pword” size=“25”/>
</label>
<label for=“verifycode”>验证码:
<input name=“verifycode” type=“text” class=“verifycode” id=“vcode” size=“10”
maxlength=“4”/>
<img src=“code.asp” nclick=“javascript.:this.src=‘code.asp?tm=’+Math.random()”
style=“cursos:pointer” alt=“点击更换” title=“点击更换”/></label>
<p class=“center”>
<input name=“reset”type=“ (8) ” class=“submit” value=“清除数据”/>
<input type=“ (9) ” name=“submit” class=“submit”value=“管理登录”/>
</p>
</form>
</body>
</html>
(1)~(9)备选答案如下:
A.pword B.where C.uname D.vcode E.reset
F.submit G.rs H.sql I. Not
参考答案