<!--#include virtual="inc/General.inc.asp"-->
<%
id = clng("0"&request.form("idh"))
Title = replace(request.form("Title"),"'","''")
Comment = replace(request.form("Comment"),"'","''")
strsql = "insert into guest(username,ipaddress,headimage,title,comment,recomment,email,oicq,adddatetime) values('" & replace(request("username"),"'","''") & "','" & replace(request.servervariables("remote_addr"),"'","''") & "','" & replace(request("HeadImg"),"'","''") & "','" & Title & "','" & Comment & "','','" & replace(request("email"),"'","''")&"','" & replace(request("oicq"),"'","''") & "','" & now & "')"
conn.execute strsql
CloseConnection()
Response.Write "<script language='javascript'>window.open('Infos2.asp?id=1','infos','width=250,left=' + (screen.Width / 2 - 120) + ',top=' + (screen.Height / 2 - 60) + ',height=120');window.location.href='Guest.asp';</script>"
%>