asp程序运行出错

来源:百度知道 编辑:UC知道 时间:2024/05/27 18:25:44
<!--#include file="conn.asp"-->
<!--#include file="ad_chk.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=inc/css.css rel=STYLESHEET type=text/css>
<body topmargin="5" leftmargin="5" rightmargin="5" bottommargin="5">
<%
if Request.Cookies("venshop")("admin_class")<>0 and Request.Cookies("venshop")("admin_class")<>2 then
response.write "你没有这个权限!"
response.end
end if

%>
<table border="0" cellpadding="2" cellspacing="0" id="table1"><form method="POST" action="ad_sub.asp">
<tr><td rowspan="2"><font color="#FF0000"><b>查询统计:</b></font></td>
<td> 订单号:</td>

没有提示第几行出错吗?
看了一下要出错只能是这里
<td> <input type="text" name="dataa" size="12" class=input value="<%if request("dataa")<>"" then%><%=request("dataa")%><%else%><%=year(now())%>-<%=month(now())-1%>-<%=day(now())%><%end if%>"></td>
<td> <input type="text" name="datab" size="12" class=input value="<%if request("datab")<>"" then%><%=request("datab")%><%else%><%=year(now())%>-<%=month(now())%>-<%=day(now())+1%><%end if%>"></td>

试试这样改
<td> <input type="text" name="dataa" size="12" class=input value="<%if request("dataa")<>"" then response.write request("dataa") else response.write year(now())&"-"&month(now