<%dbdns="../"%>
<!--#include file="../main.asp"-->
<%
sortid=request.form("sortid")
tableid=request.form("tableid")
ypid=request.form("ypid")
book_user=request.form("book_user")
book_contact=request.form("book_contact")
book_content=request.form("book_content")
if sortid="" or tableid="" or ypid="" then
response.write "<script>alert('未知错误');window.close();</Script>"
response.End()
end if
if book_user="" or len(book_user)<2 or len(book_user)>16 then
response.write "<script>alert('反馈出错，下面是产生错误的可能原因：\n\n·请输入 2-16 位字符的用户名！');window.close();</Script>"
response.End()
end if
if book_contact="" or len(book_contact)<5 or len(book_contact)>40 then
response.write "<script>alert('反馈出错，下面是产生错误的可能原因：\n\n·请输入 5-40 位字符的联系方式！');window.close();</Script>"
response.End()
end if
if book_content="" or len(book_content)<5 or len(book_content)>100 then
response.write "<script>alert('反馈出错，下面是产生错误的可能原因：\n\n·请输入 10-100 位字符的反馈内容！');window.close();</Script>"
response.End()
end if

set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from dlxf_leaveword"
rs.open sql,conn,1,3
rs.addnew
rs("dlxf_book_user")=book_user
rs("dlxf_book_contact")=book_contact
rs("dlxf_book_content")=book_content
rs("dlxf_book_sort")=sortid
rs("dlxf_book_table")=tableid
rs("dlxf_book_ypid")=ypid
rs.update
rs.close
set rs=nothing

response.write "<script>alert('反馈成功，谢谢您的参与！');window.close();</Script>"
response.End()
%>