<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
<%
if Not ChkPost then 
response.redirect ("../../login/chklogin.asp?login=4")
response.end
end if

content=Replace_Text(request("content"))
bookid=Replace_Text(request("bookid"))
linkman=Replace_Text(request("linkman"))
company=Replace_Text(request("company"))
address=Replace_Text(request("address"))
email=Replace_Text(request("email"))
phone=Replace_Text(request("phone"))
post=Replace_Text(request("postcode"))


fax=Replace_Text(request.form("fax"))


web=Replace_Text(request.form("web"))

city=Replace_Text(request.form("city"))



set rs=server.createobject("adodb.recordset")
sql="select * from book where (info_id is null)" 
rs.open sql,conn,1,3
rs.addnew




rs("bookid")=bookid
rs("content")=content
rs("linkman")=linkman
rs("company")=company
rs("address")=address
rs("mail")=email
rs("phone")=phone
rs("fax")=fax
rs("postcode")=post

rs("web")=web

rs("gsid")=session("id")
rs("url")="company/1/index.asp?id="&session("id")&""
rs("dateandtime")=date()
rs.update
response.write"<SCRIPT language=JavaScript>alert('您的留言已经发送成功!\n\n我公司收到留言后将会尽快与您联系,\n\n感谢您的支持!');"
response.write"this.location.href='contact.asp?id="&bookid&"';</SCRIPT>"
rs.close

set rs=noting
conn.close
set conn=nothing
%>