asp代码找错
<!-- #include file="../conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
set rst=server.CreateObject("adodb.recordset")
rst.open "zxly",conn,1,3
rst.addnew
rst("kname")=trim(request.Form("name"))
rst("ktel")=trim(request.Form("tel"))
rst("ktitle")=trim(request.Form("zhuti"))
dim strLy
strLy=trim(request.Form("liuyanneirong"))
%>
<%
Function FullChinese(str)
Dim i
i=len(str)
If i=0 Then
FullChinese=False
Exit Function
End If
Do While i>0
If Asc(Mid(str,i,1))<10000 And Asc(Mid(str,i,1))>-10000 Then
FullChinese=False
Exit Function
End If
i=i-1
Loop
FullChinese=True
End Function
%>
<%
if(FullChinese(strLy)=true) then
rst("kcontent")=strLy
else
response.Write"<script > alert('请返回输入正确的中文,谢谢合作!');history.back();</script>"
end if
if trim(request.Form("yanzhengma"))="" And CStr(Session("GetCode")) <> CStr(request.Form("yanzhengma")) then
response.Write "<script > alert('请返回输入正确的验证码,谢谢合作!');history.back();</script>"
end if
rst.update
rst.close
set rst=nothing
response.Write "<script> alert('提交成功!我们会及时给您回复,请浏览本站查收...');window.location.href='http://localhost/zxly.asp';</script>"
%>
</body>
</html>
为什么没有存入到数据库呢