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 SMT_leaveword\"
rs.open sql,conn,1,3
rs.addnew
rs(\"SMT_book_user\")=book_user
rs(\"SMT_book_contact\")=book_contact
rs(\"SMT_book_content\")=book_content '就用它吧,100个字符满够用了
rs(\"SMT_book_sort\")=sortid
rs(\"SMT_book_table\")=tableid
rs(\"SMT_book_ypid\")=ypid
rs.update
rs.close
set rs=nothing