页面2
A、用ASP实现,请在横线处填写出相关语句
seachscore.asp页面关键代码:
<center><font size="4"><b>计算机等级考试成绩查询</b></font></center>
(1)
<center><b>请输入准考证号和姓名</b></center>
<table align="center" cellpadding="0" cellspacing="0" border="1">
<tr><td><b>准考证号:</b></td>
<td><input type="text" name="student_test_num"><br></td></tr>
<tr><td><b>姓名:</b></td>
<td><input type="text" name="student_name"><br></td></tr>
<tr><td colspan="2" rowspan="2" nowrap>
<center><input type="submit" value="查询"></center></td></tr>
</table></form>
showscore.asp页面关键代码:
<!--#INCLUDE file="CONN.ASP" -->
<% Function ShowClass(Test_Class)
if Test_Class =6 then response.Write"三级 for 网络技术"
if Test_Class =5 then response.Write"三级 for 数据库技术"
if Test_Class =4 then response.Write("三级 for 软件技术")
if Test_Class =1 then response.Write("三级 for 微机技术及应用")
End Function %>
<% dim rs,testnum,testname
if testnum ="" or testname ="" then
%><script>alert("准考证号和姓名必填,请重输!")</script><script>history.go(-1)</script><% end if
if rs.eof then
%><script>alert("准考证号错误,请重填!")</script><script>history.go(-1)</script><% end if
then
%>
<center><h4><%=rs("student_name ")%>同学,你的计算机等级考试成绩如下:</h3>