你看看这段代码
if request.querystring("action")="zwedit" then
exec="select * from th_zwh where xlid='"&request.form("xlid")&"' and zwnum='"&request.form("zwnum")&"'"
If Not recmy.eof Then
Response.Write("<script language=""JavaScript"">alert(""此用户已经存在,请选择其他不存在用户名!"");history.go(-1);</script>")
Else
exec="select * from th_zwh where id="&request.form("idid")
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,3
rs("zwnum") = request.form("zwnum")
rs("zwname") = request.form("zwname")
rs("zwsfz") = request.form("zwsfz")
rs.Update
rs.Close
Set rs=Nothing
Response.write "<script language='javascript'>" & chr(13)
response.write "alert('座位调整成功!');" & Chr(13)
response.write "window.document.location.href='thxlyd1.asp?id="&request.QueryString("id")&"';"&Chr(13)
response.write "</script>" & Chr(13)
Response.End
end if
end if
http://www.,就算跌倒也要豪迈的笑。