|
20. PHP
中,关于输出命令,
(
)
是不准确的。
A. echo
B. printf
C. print
D. write
二、名词解释
(
每小题
4
分,共
12
分
)
21. Web
22. ADO
的
Connection
对象
23. DOM
三、简答题
(
前
2
题每小题
6
分,后
4
题每小题
7
分,共
40
分
)
24.
简述在
ASP
页中指定脚本语言类别的方法。
25.
简述访问项目的几种方法。
26.
简述
ASP
中的几个常用内部对象。
27.
简述
IP
地址每一类的特征。
28.
简述比较常见的站点模型。
29.
简述
ODBC
数据库驱动程序的作用。
四、论述题
(
每小题
9
分,共
18
分
)
30.
请叙述在
ASP
语言中,用
ADO
访问数据库
(
含写入
)
的
4
个过程。
31.
阅读下列
2
个程序,说明该程序主要实现的功能和主要的语句内容含义,并根据
程序给出运行结果。
程序
1
:
Sendmai11.htm1
<htm1>
<head>
<title>
发送电子邮件
</title>
</head>
<body>
<h2>
发送一个电子邮件
</h2>
<form method=post action=sendmail.asp>
<br><b>
发送
:
</b><input name=towho type=text size=30>
<br><b>
标题
:
</b><input name=subject type=text size=30>
<br><b>
内容
:
</b><textarea name=content cols=30 rows=6></texta rea>
<br>
<center><input type=submit value=
发送
><input type=reset value=
清空
>
</center>
</form>
</body>
</html>
程序
2:Sendmail
.
asp
<html>
<head>
<title>
发送电子邮件
</title>
</head>
<body>
<%
towho=trim(request. form(
″
towho
″
)
subject=trim(request. form(
″
subject
″
)
content=trim(request. form(
″
content
″
)
if towho<>
″″
then
set myMail=server.createObject(
″
CDONTS. Newmail
″
)
myMail. from=
″
master@abc. com
″
myMail. to=towho
myMail. subject=subject
myMail. body=content
myMail. send
set myMail=nothing
Response. Write
″
你的邮件已经发往
″
& towho
else
Response. Write
″
请输入你所要发往的邮箱地址
″
end if
</body>
</html>
|