帮忙看下错误,谢谢,在线等~~~~
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<%
if session("admin_name")="" then
%>
<SCRIPT language=JavaScript>
alert('你没有权限,请登陆!');
</SCRIPT>
<%
response.Redirect("admin_login.asp")
end if 'if session("admin")="" then
%>
<script>
function openbag(id) { window.open("submore.asp?sub_id="+id,"","height=400,width=600,left=190,top=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");}
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Refresh" content="100; url=subpass.asp">
<link rel="stylesheet" type="text/css" href="css.css">
</head>
<body style="background-color: #F0FBF1">
<form method="POST" action="searchsub.asp?soutype=2">
<div align="center">
<table border="0" width="778" cellspacing="1" bordercolorlight="#2F94F9" bordercolordark="#FFFFFF">
<tr>
<td> 输入订单号:
<input type="text" name="keywords" size="12" class=ipt> <input type="submit" value="查看订单" name="B4" class=input> </td>
</tr>
</table>
</div>
</form>
<%
keywords=trim(request("keywords"))
soutype=int(trim(request("soutype")))
select case soutype
case 0
sql="select * from zhangdan order by id DESC"
case 1
sql="select * from zhangdan where BillNO like '%"&keywords&"%' order by id DESC"
case 2
sql="select * from zhangdan where CardNo like '%"&keywords&"%' order by id DESC"
case 3
sql="select * from zhangdan where PWD like '%"&keywords&"%' order by id DESC"
end select
rs.open sql,conn,3,3
if rs.eof then
response.write "暂且没有任何订单"
response.end
end if
rs.pagesize=15
page = cint(request("page"))
if page = "" then page = 1
if page < 1 then page=1
if page >= rs.pagecount then page = rs.pagecount
rs.absolutepage = page
%>
<div align="center" style="width: 893; height: 124">
<table border="1" width="778" cellspacing="0" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" height="165" cellpadding="0">
<tr>
<td width="77" style="padding: 5px" height="30">编号</td>
<td width="80" style="padding: 5px" height="30">帐单号</td>
<td width="125" style="padding: 5px" height="30">时间</td>
<td width="83" style="padding: 5px" height="30">价格</td>
<td width="63" style="padding: 5px" height="30">数量</td>
<td width="87" style="padding: 5px" height="30">状态</td>
<td width="85" style="padding: 5px" height="30">卡号</td>
<td width="86" style="padding: 5px" height="30">密码</td>
<td width="86" style="padding: 5px" height="30">商品ID</td>
</tr>
<%
for i=1 to rs.pagesize
%>
<tr>
<td width="77" style="padding: 5px" height="30"><a href='submore.asp?sub_id=<%=rs("id")%>'>
<td width="80" style="padding: 5px" height="30"><%=rs("BillNO")%> </td>
<td width="80" style="padding: 5px" height="30"><%=rs("DTime")%> </td>
<td width="125" style="padding: 5px" height="30"><%=rs("Price")%> </td>
<td width="83" style="padding: 5px" height="30"><%=rs("SL")%> </td>
<td width="63" style="padding: 5px" height="30"><%=rs("iState")%> </td>
<td width="87" style="padding: 5px" height="30"><%rs("CardNo")%> </td>
<td width="85" style="padding: 5px" height="30"><%rs("PWD")%></td>
<td width="86" style="padding: 5px" height="30"><%=rs("GID")%> </td>
</tr>
</table>
<%
rs.movenext
if rs.eof then exit for
next
%>
</table>
</div>
<%
set rs=nothing
conn.close
set conn=nothing%>
错误提示
Microsoft VBScript 运行时错误 错误 '800a01f4'
变量未定义: 'keywords'
/buy001/searchzhangdan.asp,行 33
不知道改怎么解决,请各位大虾看看!