<!--#include file="../Include/Conn.asp" -->
<%
user_goid=request("user_goid")
userid=request("userid")
club=request("club")
username=request("username")
title=request("title")
pic=request("pic")
book=request.Form("book")
if pic="" 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 Photo_pic_club"
rs.open sql,conn,1,3
rs.addnew
rs("F_userid")=userid
rs("F_user_goid")=user_goid
rs("F_picid")=club
rs("username")=username
rs("F_pic")=pic
rs("F_username")=title
rs("F_book")=book
rs.update
rs.close
set rs=nothing
response.Redirect("../club.asp?id="&club)
response.End()
%>