<!--#include file="inc_top.asp" -->
<table width="762" bgcolor="#ffffff" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td height="400" valign="top">
<p>&nbsp;</p><table width="90%" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td> 
      <%
if request("name")="" then 
response.write "请留下您的姓名，谢谢！"
response.end
end if
if request("content")="" then 
response.write "不写留言反馈内容怎么提交！"
response.end
end if
if Len(request.form("content"))>800 then 
response.write "错误提示:每条留言反馈的内容不能大于800字!<br>&nbsp;&nbsp;<a href=# onclick='history.back()'>返回修改</a>"
response.end
end if
%>
<!--#include file="conn/char.asp"-->
<%
if request("tel")="tel" then
   tel=""
else
tel=htmlencode2(request("tel"))
end if
if request("email")="E-mail" then
   email=""
else
   email=htmlencode2(request("email"))
end if
content=htmlencode2(request("content"))
name=htmlencode2(request("name"))
ip = Request.servervariables("REMOTE_ADDR")
set rs=server.createobject("adodb.recordset")
sql="select * from guestbook where (id is null)" 
rs.open sql,conn,1,3
rs.addnew
rs("email")=email
rs("tel")=tel
rs("content")=content
rs("name")=name
rs("ip")=ip
rs.update
rs.close
set rs=nothing
Response.write "<img src=image/tp06.gif  align=absmiddle>留言成功，谢谢您对我们的支持与厚爱！<br><br>&nbsp;&nbsp;<a href=index.asp>&gt;&gt;返回网站首页</a><br><br>&nbsp;&nbsp;<a href=guestbook.asp>&gt;&gt;返回继续留言</a>"
%>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!--#include file="inc_end.asp" -->