【求助】asp提交不了信息,就是提交不到数据库里
RT,下面是代码,帮忙看下,谢啦else
set rs=server.createobject("adodb.recordset")
sql="select sd_name,sd_namejx,sd_url,sd_address,sd_classid,sd_content,sd_qq,sd_xianlu,sd_email,sd_password,sd_dishi,sd_zipcode,sd_lianxiren,sd_tel,sd_fax,sd_yewufanwei,sd_jifang,sd_kehu,sd_rongyu,sd_icp,sd_isp from sd_show"
rs.open sql,conn,1,3
rs.addnew
rs("sd_name")=CheckStr(trim(request.form("sd_name")))
rs("sd_namejx")=CheckStr(trim(request.form("sd_namejx")))
rs("sd_url")=CheckStr(trim(request.form("sd_url")))
rs("sd_address")=CheckStr(request.form("sd_address"))
rs("sd_classid")=CheckStr(trim(request.form("sd_classid")))
rs("sd_content")=CheckStr(replace(request("sd_content"),vbcrlf,"<br>"))
rs("sd_qq")=CheckStr(trim(request.form("sd_qq")))
rs("sd_xianlu")=CheckStr(trim(request.form("sd_xianlu")))
rs("sd_email")=CheckStr(trim(request.form("sd_email")))
rs("sd_password")=CheckStr(trim(request.form("sd_password")))
rs("sd_dishi")=CheckStr(trim(request.form("sd_dishi")))
rs("sd_zipcode")=CheckStr(trim(request.form("sd_zipcode")))
rs("sd_lianxiren")=CheckStr(trim(request.form("sd_lianxiren")))
rs("sd_tel")=CheckStr(trim(request.form("sd_tel")))
rs("sd_fax")=CheckStr(trim(request.form("sd_fax")))
rs("sd_yewufanwei")=CheckStr(trim(request.form("sd_yewufanwei")))
rs("sd_jifang")=CheckStr(trim(request.form("sd_jifang")))
rs("sd_kehu")=CheckStr(trim(request.form("sd_kehu")))
rs("sd_rongyu")=CheckStr(trim(request.form("sd_rongyu")))
rs("sd_icp")=CheckStr(trim(request.form("sd_icp")))
rs("sd_isp")=CheckStr(trim(request.form("sd_isp")))
rs.update
conn.close
set conn=nothing%>
<script language=javascript>alert("已经添加成功,请等待审核!");this.location.href="index.asp";</script>
<%end if