<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<script language="vbscript">
sub bt_click()
dim value
value=Request.Form("form1.txt.value")
if isnumeric(value) then
response.Redirect("check.asp")
else
msgbox ("please input a number")
form1.reset
end if
end sub
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>index</title>
</head>
<body>
<center>
<form name="form1" method="post" action="check.asp" id="form1">
<p>please input a number
<input type="text" name="txt" id="txt">
<input name="bt" type="button" id="bt" value="Submit" onClick="bt_click">
</p>
</form>
</center>
</body>
</html>
================
提示错误内容为:Object required:‘’Request‘’
文章来源于领测软件测试网 https://www.ltesting.net/