一条萨摩耶多少钱:有谁能帮我看一下,这里面的代码那有错的,怎么存不了进数据库

来源:百度文库 编辑:高校问答 时间:2024/05/12 18:10:57
下面这个是处理文件
<!--#include file="xjk.asp"--><html>
<title></title><meta http-equiv=refresh content=3;url=index.asp>
<body bgcolor="#FFFFFF">
<%
xm=Replace(Request.Form("xm"),"'","''")
qq=Replace(Request.Form("qq"),"'","''")
email=Replace(Request.Form("email"),"'","''")
lymy=Replace(Request.Form("lymy"),"'","''")
%>
<% if xm="" or qq="" then
response.write"<script>alert('对不起,请填写完整!');history.back(-1);</script>"
response.End()
end if%>
<%
set savebbs=conn.execute("insert into lee(xm,qq,email,lymy)values('"&xm&"','"&qq&"','"&email&"','"&lymy&"')")%>
<%
set savebbs=nothing
%>
<table border="0" cellpadding="0" cellspacing="1" width="100%">
<tr>
<td width="100%"><font color="#FF0000"><font size="2">您的留言已经提交成功!谢谢您的支持!本页将在3秒后自动转向…………</font></font><font size="2" color="#FFFFFF">…<b>…</b></font></td>
</tr>
<tr>
<td width="100%"></td>
</tr>
</table>

</body>

set savebbs=conn.execute("insert into lee(xm,qq,email,lymy)values('"&xm&"','"&qq&"','"&email&"','"&lymy&"')")%〉返回结果是什么?