求助!!这是一个在线考试系统的,自动提交的页面,但是总是提示错误,请各位GG帮忙解决!

hyitbingboy 2006-08-18 02:27:31



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="vbscript">
dim serverTime
dim exam_starttime
dim exam_testtime
dim examendTime

exam_starttime="09:00:00"//开考时间
exam_testtime="02:00:00"//考试时间2时间
serverTime ="<%=time()%>"//服务器当前时间
examendTime =cdate("exam_starttime") + cdate("exam_testtime")//结束考试时间

sub jump
serverTime = cdate(serverTime) + cdate("00:00:01")
if cdate(serverTime) < cdate(examendTime) then
document.myclock.start.value = exam_starttime
document.myclock.clock.value = cdate(cdate(examendTime) - time())
document.myclock.end.value = examendTime
settimeout "jump()" ,1000
else
MsgBox "考试时间到,系统自动交卷。"
form1.submit//交卷表单的按钮
end if
end sub

</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<form name="myclock">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> <strong>开考时间:</strong> <input name=start size=8 disabled>
<strong>交卷时间:</strong> <input name=end size=8 disabled>
<strong>剩余时间:</strong> <input name=clock size=8 disabled>
</td>
</tr>
</table>
</form>

//答卷表单
<form name="form1" action="abc.asp">
........//自己填写的页面内容!!!!
<input type="submit" name="ok" value="交卷">
</form>
</body>
</html>
...全文
154 3 打赏 收藏 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
whk_4585 2007-03-03
  • 打赏
  • 举报
回复
错误提示是什么啊?

要是接收页面不允许空值,那就要改一下接收页面了,如果是空值就给他零分
TaoTaoYou 2006-08-22
  • 打赏
  • 举报
回复
这段代码提示什么错误,你想实现什么效果?把问题描述清楚,谢谢!
hyitbingboy 2006-08-18
  • 打赏
  • 举报
回复
请大家帮忙呀!,实在是不知道怎么结局了呀

28,402

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧