首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读下列说明,根据网页显示的效果图,回答问题1至问题4,将解答填入对应的解答栏内。 【说明】 以下是用ASP实现的一个在线留言系统。用IE打开网页文件index.html后的效果如图5-1所示。 【index.html 文档的内容】
阅读下列说明,根据网页显示的效果图,回答问题1至问题4,将解答填入对应的解答栏内。 【说明】 以下是用ASP实现的一个在线留言系统。用IE打开网页文件index.html后的效果如图5-1所示。 【index.html 文档的内容】
admin
2009-05-15
28
问题
阅读下列说明,根据网页显示的效果图,回答问题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"
%>
选项
答案
(1)B
解析
考查IE解析网页的基本原理。IE可以正常解析后缀为.html和.htm的网页文件。同时,如果文件的后缀名为.asp,那么IE需要得到服务器对ASP文件的处理所得的HTML代码后,也可正常显示。本题中将普通.html文件改名为以.asp为后缀,显然其中不含 ASP程序,因此Ⅲ可正常显示。而IE无法显示后缀名为.php的文件。
转载请注明原文地址:https://jikaoti.com/ti/KUD7FFFM
本试题收录于:
网络管理员下午应用技术考试题库软考初级分类
0
网络管理员下午应用技术考试
软考初级
相关试题推荐
根据McCabe度量法,图4.13程序图的复杂性度量值为(32)。
利用(11)可以对软件的技术信息、经营信息提供保护。
编制一个好的程序,首先要确保它的正确性和可靠性,除此以外,通常更注重源程序的(66)。还应强调良好的编程风格,例如,选择标识符的名字时应考虑(67):在书写语句时应考虑(68);在书写功能性注解时应考虑(69)。源程序中应包含一些内部文档,以帮助阅读和理解
假设某程序语言的文法如下:S→a|b|(T)T→TdS|S其中,VT=(a,b,d,(,)};VN={S,T},S是开始符号。考察该文法,句型(Sd(T)dh)是S的一个(28)。其中(29)是最左素短语,(30)是该句型的直接短语。
(43)是以提高软件质量为目的的技术活动。
项目管理工具中,将网络方法应用于工作计划安排的评审和检查的是(21)。
将拥有2500台主机的网络划分为两个子网,并采用C类IP地址。子网1有500台主机,子网2有2000台主机,则子网1的子网掩码应设置为(62),子网2至少应划分为(63)个C类网络。(63)
Hash函数有共同的性质,则函数值应当以(55)概率取其值域的每一个值。解决Hash法中出现的冲突问题常采用的方法是(56)。(56)
随机试题
简述《老子》的自然主义法律思想。
真正实现人的全面发展的社会条件是()。A.机器大工业B.社会主义制度C.教育与生产劳动相结合D.市场经济
A.2%碳酸氢钠B.1:5000高锰酸钾C.鸡蛋清D.温热水E.生理盐水下列中毒宜用或禁用上述哪种洗胃液强碱中毒患者洗胃宜用
固定义齿的固位形式不包括
以下哪些与甲氨蝶呤相符
下列关于城市规划组织编制主体的表述中,不正确的是()。
下列情形中,承包人不可以提起索赔的事件是()。
生产关系所体现的是生产过程中()。
下列关于Windows2003系统DHCP服务器安装、配置和使用的描述中,错误的是()。
Hedivideduphispropertyandgavea______toeachofhischildren.
最新回复
(
0
)