<!--#include file="../Include/Conn.asp" -->
<%
userid=request("userid")
club=request("club")
username=request("username")
club_title=request("club_title")
title=request("title")
book=request.Form("book")
if club_title="" then
response.write "<script LANGUAGE='javascript'>alert('留言出错，下面是产生错误的可能原因：\n\n·请输入选择分类');history.go(-1);</script>"
response.End()
end if
if title="" then
response.write "<script LANGUAGE='javascript'>alert('留言出错，下面是产生错误的可能原因：\n\n·请输入标题');history.go(-1);</script>"
response.End()
end if
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from message_club"
rs.open sql,conn,1,3
rs.addnew
rs("user_id")=userid
rs("club")=club
rs("username")=username
rs("sort")=club_title
rs("lr")=title
rs("message")=book
rs("key1")=6
rs.update
rs.close
set rs=nothing
response.write "<script LANGUAGE='javascript'>alert('主题留言发布成功!谢谢您的参与!');history.go(-1);</script>"
response.End()
%>