关于审核程序的制作方法,在线等.....
yzone 2006-03-25 02:42:02 各位朋友大家好:
最近我遇到个问题,在做一个审核页面的时候出现这样的问题:选择通过审核或者不通过审核,两个的代码是这样的<form name="recontent" method="post" action="lyb_sh.asp?action=add">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="29%" align="right">标题:</td>
<td colspan="2" align="left"><%=rs("title")%></td>
</tr>
<tr>
<td align="right">内容:</td>
<td colspan="2" align="left"><%=rs("content")%></td>
</tr>
<tr>
<td align="right">回复内容:</td>
<td colspan="2" align="left"><%if rs("recontent")<>"" then%>
<%=rs("recontent")%>
<%else
response.write("暂无回复")
end if
%></td>
</tr>
<tr>
<td align="right">审核:</td>
<td width="19%" align="left"><input name="display" type="radio" class="inputNo" value="true" <%if rs("view")=true then response.Write(" checked")%>>
通过</td>
<td width="52%" align="left"><input name="display" type="radio" class="inputNo" value="false" <%if rs("view")=false then response.Write(" checked")%>>
不通过</td>
</tr>
<tr>
<td height="18" colspan="3" align="center"><input type="submit" name="Submit" value="提 交"></td>
</tr>
</table>
</form>
当程序执行到action=add的时候,好象出了点问题,具体代码如下:
<%
if session("AdminUID")="" then
response.redirect("lyb.asp")
end if
%>
<%
if request("action")="add" then
DBconnBegin
dim rs,sql
set rs=server.createobject("adodb.recordset")
sql="select * from niuu_lyb"
rs.open sql,conn,1,3
if request.form("display")="true" then
rs("view")=true
else
rs("view")=false
rs.update
rs.close
set rs=nothing
end if
end if
response.write("<script>alert('提交成功!');location.href='lyb.asp';</script>")
response.end
%>
页面返回信息是提交成功,但是数据表中的view没有变成true.
请问怎么解决,先谢谢你们了!