<%@language="vbscript" codepage="936"%>
<% option explicit %>
<!-- #include file="conn.asp"-->
<%
dim g_title,g_user,g_qq,g_mail,g_www,g_content,g_ip,sql
g_ip=request.servervariables("remote_addr")
g_title=request.form("g_title")
g_user=request.form("g_user")
g_qq=request.form("g_qq")
g_mail=request.form("g_mail")
g_www=request.form("g_www")
if g_www="http://" then
g_www=""
end if
g_content=request.form("g_content")
if g_title="" or g_content="" then
response.redirect("gadd.asp")
end if
sql="insert into guestbook (g_title,g_user,g_qq,g_mail,g_www,g_content,g_ip) values('"&g_title&"','"&g_user&"','"&g_qq&"','"&g_mail&"','"&g_www&"','"&g_content&"','"&g_ip&"')"
lele.execute(sql)
response.write "<script language='javascript'>alert ('乐乐提示:\n\n★恭喜操作成功!谢谢你的意见!请待管理员乐乐的审核通过……')</script>"
response.write "<meta http-equiv='refresh' content='0;url=guestbook.asp'>"
%>
-------------------------------------
这个是处理的程序,麻烦版主帮忙看下。谢谢