现在这个程序就是这样子,凡是传过来的数据是0的,就不能更改,是1的,更新了为0,就不能改为1了,真奇怪!高手们帮我看看 。
<!--#include file="conn.asp"-->
<%
Dim passedid,pass
passedid=request("id"
pass=request("wi"
if pass<>"1" then
sql = "update liu set passed='1' where ID = "&passedid
conn.execute(sql)
else
sql = "update liu set passed='0' where ID = "&passedid
conn.execute(sql)
end if
conn.close()
set conn = nothing
response.redirect "a.asp"
%>