试题与答案

阅读下列说明,根据网页显示的效果图,回答问题1至问题4,将解答填入对应的解答栏内。

题型:问答题

题目:


阅读下列说明,根据网页显示的效果图,回答问题1至问题4,将解答填入对应的解答栏内。
【说明】
以下是用ASP实现的一个在线留言系统。用IE打开网页文件index.html后的效果如图5-1所示。

【index.html 文档的内容】
<html>
<head>
<title>在线留言系统</title>
</head>
<body>
<p align="center"><font color="#006699">在线留言系统</font></p>
<form method="post"action="submit.asp">
<table border="0"cellspacing="1"width="89%">
<tr>
<td>姓名: </td>
<td>< (2) name="name" size="30" class="text" maxlength="20"></td>
</tr>
<tr>
<td>性别: </td>
<td>< (3) name="sex" size="1">
<option selected>请选择你的性别</option>
<option value="男">男</option>
<option value="女">女</option>
</select></td>
</tr>
<tr>
<td><b>简短留言: </font></b></td>
<td>< (4) name=-content" rows="6" cols="45" class="text"></textarea>
</td>
</tr>
<tr>
<td>< (5) name="submit’’ class="btn" value="提交留言"></td>
<td>< (6) name="B1" value="全部重填" class=’!btn"></td>
</tr>
</table>
</form>
</body>
</html>
【submit.asp 文档的内容】
<%
If request.form("name")=" " Then
response.write"<script>alert(’请填写留言人性名!’); history.back()
</script>"
response.end
End If
If request.form("sex")=" " or request.form("sex")="请选择你的性别" Then
response.write"<script>alert ’请选择留言人性别’);history. back()
</script>"
response.end
End If
If len( (7) )>100 Then
response.write"<script>alert(’争议不能超过100字!’); history. back()
</script>"
response.end
End If
%>
<!--#include file="conn.asp" -->
<%
dim rs,sql
set rs=server. (8)
sql="select * from data where (id is null)"
rs.open sql,conn, 1,3
rs. (9)
rs("name")= (10)
rs("sex")=request.form("sex")
rs("content")=request.form("content")
rs("date")=now()
rs("ip")=request.ServerVariables("remote_addr")
rs. (11)
rs.close
conn.close
response.redirect"success.asp"
%>

【问题2】为index.html文件中的(2)~(6)处空缺选择正确答案。 (2)~(6)备选答案:

A.input type="reset" B.input type="submit" C.input type="text" D.Textarea
E.option F.Select G.radio

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0708/36d17974f9f0f915ade102fd2318bfa7.html

下面是错误答案,用来干扰机器的。

参考答案:13(4203.3010)

试题推荐
微信公众账号搜索答案