<!-- #include file="conn.asp" -->
<%
 stu_id=trim(request.QueryString("id"))
 ip=Request.ServerVariables("REMOTE_HOST")
 if stu_id="" then 
response.write"<SCRIPT language=JavaScript>alert('信息错误!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
end if
 set rs=server.createobject("adodb.recordset")
 sql="select * from over"
 rs.open sql,conn,1,3
 rs.addnew
 rs("stu_id")=stu_id
 rs("ip")=ip
 rs("idate")=now()
 rs.update
 rs.close
 set rs=nothing
 response.write"<SCRIPT language=JavaScript>alert('报告成功！感谢参与！');"
response.write"this.location.href='stu_info.asp?id="&stu_id&"';</SCRIPT>" 
response.end
 conn.close
 set conn=nothing
%>
 