ASP代码的意思!~~~~麻烦各位告诉我,谢谢

来源:百度知道 编辑:UC知道 时间:2024/09/22 18:36:20
<!--#include file="conn.asp"-->
<!--#include file="Checkuser.asp"-->
<html>
<head>
<title>考试界面——成绩</title>
</head>
<body background=images/backimage.gif bgcolor="#FFFFFF">
<table width="75%" border="0" align="center" height="371">
<tr>
<td height="406">
<%
studentname=session("studentname")
score=session("score")
total=session("total")
rate=score/total
width=150*rate
width2=150*(1-rate)
response.write("<center><FONT size=4 color=red face=宋体>"&studentname&"</font>您好!您的考试成绩为:"&score&"分,总分为"&total&"分</center><br>")
%>
<center>
<img src="images/bar2.gif" height="10" width="<%=width%>"><i

这分明就是一个考试程序的ASP代码嘛!
楼主只要想问什么?

你把上面的代码从
<html>到</html>
的内容都拷贝到一个html文件里看一下就明白了啊!

这么多你问那一句呀.

<%
studentname=session("studentname")
score=session("score")
total=session("total")
rate=score/total
width=150*rate
width2=150*(1-rate)
response.write("<center><FONT size=4 color=red face=宋体>"&studentname&"</font>您好!您的考试成绩为:"&score&"分,总分为"&total&"分</center><br>")
%>

这段ASP代码是把保存在Session里面的那些成绩参数显示出来D
比如:studentname=session("studentname")
studentname应该是学生名字,学生名字就临时保存在这个session("studentname")里面。。

这个页面之前应该有很多试题页面吧?

fang zai IIS li ceshi yixia kan kan le

考试界面——成绩
考试的系统 而且进来用session创建时间还有用户
你写的这页是从前面登陆过来的登陆以后开始记录他的名字等开始考试