www.gusucode.com > 中网景企业网站源码时尚版 2009.73码程序 > common/cmtsave.asp

    <!--#include file="../opendb.asp" -->
<%
if session("cnkcode")<>Trim(Request.Form("yzma")) then call alertmsg("验证字错误!")
dim PID,Person,face,Content,ispass
PID=Trim(Request.Form("PID"))
Person=UserName
if Person="" then Person="网友"
face=Trim(Request.Form("face"))
Content=Trim(Request.Form("Content"))
if isShenCmt=1 then ispass=0 else ispass=1
conn.execute("insert into cnk_comment (ChannelID,PID,Person,face,Content,ispass,ip) values ("&ChannelID&","&PID&",'"&Person&"','"&face&"','"&Content&"',"&ispass&",'"&GetRealIP()&"')")
Call alertmsg_url(" OK!",Request.ServerVariables("HTTP_REFERER"))
%>