<!--#include file="conn.asp"--><%seo_title="Leave a message-"&sitename%>
<!--#include file="IncAsp/WrzcNet_top.asp"-->
<div align="center">
<table cellpadding="0" cellspacing="0" class="all_t1">
<tr><td class="all_l_td" valign="top">
<!--#include file="IncAsp/WrzcNet_log.asp"--><div class="d5"></div>
</td>
<td valign="top" class="all_c_td">

<table width="99%" border="0" cellpadding="0" cellspacing="0">
<%
if request("action")="post" then


 if request("yz")="" then
 Response.Write "<script language=javascript>alert('Please Enter verify code!'); window.location.href='"&Request.ServerVariables("Http_Referer")&"';</script>"
 response.end
 end if
 
 if int(request("yz"))<>Session("GetCode") then
 Response.Write "<script language=javascript>alert('Please Enter verify code!'); window.location.href='"&Request.ServerVariables("Http_Referer")&"';</script>"
 response.end
 end if





venip=Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If venip="" Then venip=Request.ServerVariables("REMOTE_ADDR")
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from WrzcNet_gb"
rs.open sql,conn,1,3
rs.Addnew
rs("name")=DelStr(Request("name"))
rs("email")=DelStr(Request("email"))
rs("oicq")=DelStr(Request("oicq"))
rs("content")=DelStr(Request("content"))
rs("photo")=DelStr(Request("photo"))
rs("ip")=venip
rs("riqi")=date()
rs("c_c")=0
rs.Update
rs.Close
Set rs=Nothing
Response.Redirect"gb.asp"
Response.end
else%>
<tr><td class="sort">&nbsp;<IMG src="Skin/<%=WrzcNet_skin%>/home.gif" border=0 align="absmiddle">   
	<a href="index.asp">Home</a> >>&nbsp;<a href="gb.asp">Feedback</a> >>&nbsp;Leave a message&nbsp;
</td></tr>
<tr><td width="100%">
<script language="JavaScript" src="Inc/checkgb.js"></script>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<form action="gb_write.asp?action=post" method="POST"  name="regform" language="javascript" onsubmit="return regform_onsubmit()">
  <tr><td width="100" align="right">Name:</td><td><input type="text" name="name" size="20"><font color="#FF0000">*</font></td></tr>
  <tr><td width="100" align="right">Sex:</td><td><select size="1" name="photo"><option value="1" selected>Male</option><option value="2">Fmale</option></select></td></tr>
  <tr><td width="100" align="right">Email:</td><td><input type="text" name="email" size="20"><font color="#FF0000">*</font></td></tr>
  <tr><td width="100" align="right">Mesage:</td><td><textarea rows="4" name="content" cols="36"></textarea></td></tr>
  <tr><td width="100" align="right">verify code:</td><td>
	<input type="text" name="yz" size="20"> <img border="0" src="code.asp"></td></tr>
  <tr><td align="center"></td><td height="100" valign="top"><input type="submit" name="submit" value="Submit"></td></tr>
</form>
<%end if%>
</table>
</td></tr></table>
</td></tr></table></div>
<!--#include file="IncAsp/WrzcNet_copy.asp"-->