<!--#include file="conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<LINK
href="/images/css.css" type=text/css rel=stylesheet>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
function getip()
	dim userip
	userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR") 
	If userip = "" Then userip = Request.ServerVariables("REMOTE_ADDR") 
	getip=userip
end function


dim content,Name,tel
Name=replace(trim(request.form("Name")),"'","''")
content=replace(trim(request.form("Contents")),"'","''")
tel=replace(trim(request.form("Tel")),"'","''")
if content="" or Name="" or Tel="" then
	Response.write "<script>alert('信息不完整');</script>"
	Response.end
end if
conn.execute "insert into zixun ([content],Name,tel,ip) values('"&content&"','"&Name&"','"&tel&"','"&getip()&"')"
%>
<script language="JavaScript">
parent.form1.Submit2.disabled=false;
parent.form1.Submit2.value="提　交"
alert("反馈提交成功\n\n感谢您的支持");
parent.form1.reset();
<%if instr(lcase(request.ServerVariables("HTTP_REFERER")),"zixun_form.asp" ) >0 then Response.write "parent.window.close();"%>
</script>
</body>
</html>