<!--#include file="include/conn.asp"-->
<% 
'website:http://www.angelasp.com
' Angel工作室技术开发团队:QQ:815657032、QQ：709047174
' Copyright (C) Angel工作室 (http://www.angelasp.com).  All rights reserved
  msg_name=Request.Form("username")
  msg_content=Request.Form("Write_content")
  msg_face = Request.Form("msg_face")
  if msg_name<>"" and msg_content<>"" then
    set rs=server.CreateObject("adodb.recordset")
        sql="insert into Message (msg_name,msg_content,msg_ip,msg_face) values ('"&msg_name&"','"&msg_content&"','"&getIP&"','"&msg_face&"')" 
        conn.Execute(sql)
		conn.close
		Response.Write "<script language='javascript'>alert('留言需要审核,请等待管理员的回复。很感谢您这次的留言');location='index.asp';</script>"
        'response.redirect("index.asp")
 else 
   Response.Write "<script language='javascript'>alert('内容或者用户名不能有空');location='write_message.asp';</script>"
 End If 
%>