<% uid=request("uid")
set rs=server.createobject("adodb.recordset")
sql1="update person set click=click+1 where uname='"&uid&"'"
rs.open sql1,conn,1,1
sql2="select * from person where job<>'""' and uname='"&uid&"'"
rs.open sql2,conn,1,1 %>
<% if rs.eof or rs.bof then
response.write"<SCRIPT language=JavaScript>alert('对不起,该用户不存在或已被删除!');"
response.write"javascript:window.close();</SCRIPT>"
end if %>
<% uid=request("uid")
id=request("id")
set rs=server.createobject("adodb.recordset")
sql="select * from company where uname='"&uid&"'"
rs.open sql,conn,1,1 %>
<% if rs.eof or rs.bof then
response.write"<SCRIPT language=JavaScript>alert('对不起,该用户不存在或已被删除!');"
response.write"javascript:window.close();</SCRIPT>"
end if %>
有两个表单,后面一个是company 中的cok值为1时
你也顺便帮我改一下