用ASP实现一个定时任务。怎么实现?

来源:百度知道 编辑:UC知道 时间:2024/07/02 01:11:25
在一定的时间内如果没有对表单页面进行处理就自动提交表单?
请问怎么样实现?
关键代码能不能共享一下

非常感激!

把下面的存为。ASP文件,运行,就可以可以了,可以自己提交

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<script language="javascript">
function tijiao(){
setTimeout("tijiao1()",2000);//2秒以后提交。
}
function tijiao1(){
form1.submit();
}

</script>
</head>

<body onLoad="javascript:tijiao();">
<%if request("T1")<>"" then
response.write request("T1")
end if%>
<form method="POST" name="form1" action="index.asp">
<p>要提交的内容:<input type="text" name="T1" size="20" value="DFGDFGDFG"></p>

<p><input type="submit" value="提交" name="B1"><input type="reset&q