原来程序是这样的 <div class="bt">订单查询</div>
<div class="list">
<form name="dingdan" action="cha.asp" method="post">
<div class="s1">订单查询:
<input type="text" name="dingdan" size=20 maxlength=18 value="请填您的订单号" onFocus="if (this.value==this.defaultValue) this.value='';" onBlur="if (this.value=='') this.value=this.defaultValue;"></div>
<div class="s2"><input type="submit" name="submit" value=" 开始查询 "> <input type=reset name="Clear" value=" 重新填写 "></div>
</form>
<%
dingdan=request("dingdan")
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_action where dingdan='"&dingdan&"' order by actionid desc ",conn,1,1%>
<%
if dingdan<>"" then
if rs.eof and rs.bof then
response.write "<script language='javascript'>"
response.write "alert('无此订单号,请检查后重新输入');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
他输入正确定单号就可以,输入错误定单号就出现上述错误.谢谢!