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