求高手检查我下面这段asp代码到底哪里错误了,上半部应该没错 问题就是出在下半部
<!--#includefile="../inc/access.asp"--><!--#includefile="inc/functions.asp"--><!--#in...
<!--#include file="../inc/access.asp" -->
<!-- #include file="inc/functions.asp" -->
<!-- #include file="../inc/x_to_html/index_to_html.asp" -->
<%
act=Request("act")
If act="save" Then
web_name=trim(request.form("web_name"))
web_url=trim(request.form("web_url"))
web_image=trim(request.form("web_image"))
web_title=trim(request.form("web_title"))
web_keywords=trim(request.form("web_keywords"))
web_description=trim(request.form("web_description"))
web_TopHTML=trim(request.form("web_TopHTML"))
web_BottomHTML=trim(request.form("web_BottomHTML"))
web_copyright=trim(request.form("content"))
web_contact=trim(request.form("web_contact"))
web_person=trim(request.form("web_person"))
web_birthdate=trim(request.form("web_birthdate"))
web_birthplace=trim(request.form("web_birthplace"))
web_shortintro=trim(request.form("web_shortintro"))
web_email=trim(request.form("web_email"))
web_tel=trim(request.form("web_tel"))
web_ModelEdit=trim(request.form("web_ModelEdit"))
web_time=trim(request.form("web_time"))
set rs=server.createobject("adodb.recordset")
sql="select * from web_settings"
rs.open(sql),cn,1,3
rs("web_name")=web_name
rs("web_url")=web_url
rs("web_image")=web_image
rs("web_title")=web_title
rs("web_keywords")=web_keywords
rs("web_description")=web_description
rs("web_TopHTML")=web_TopHTML
rs("web_BottomHTM")=web_BottomHTM
rs("web_copyright")=web_copyright
rs("web_contact")=web_contact
rs("web_person")=web_person
rs("web_birthdate")=web_birthdate
rs("web_birthplace")=web_birthplace
rs("web_shortintro")=web_shortintro
rs("web_email")=web_email
rs("web_tel")=web_tel
rs("web_ModelEdit")=web_ModelEdit
rs("web_time")=web_time
rs.update
rs.close
set rs=nothing
response.Write "<script language='javascript'>alert('修改成功!');location.href='web_settings.asp';</script>"
end if
%>
rs("web_BottomHTM")=web_BottomHTM 最后少谢了L 但是我写上了 问题依旧 展开
<!-- #include file="inc/functions.asp" -->
<!-- #include file="../inc/x_to_html/index_to_html.asp" -->
<%
act=Request("act")
If act="save" Then
web_name=trim(request.form("web_name"))
web_url=trim(request.form("web_url"))
web_image=trim(request.form("web_image"))
web_title=trim(request.form("web_title"))
web_keywords=trim(request.form("web_keywords"))
web_description=trim(request.form("web_description"))
web_TopHTML=trim(request.form("web_TopHTML"))
web_BottomHTML=trim(request.form("web_BottomHTML"))
web_copyright=trim(request.form("content"))
web_contact=trim(request.form("web_contact"))
web_person=trim(request.form("web_person"))
web_birthdate=trim(request.form("web_birthdate"))
web_birthplace=trim(request.form("web_birthplace"))
web_shortintro=trim(request.form("web_shortintro"))
web_email=trim(request.form("web_email"))
web_tel=trim(request.form("web_tel"))
web_ModelEdit=trim(request.form("web_ModelEdit"))
web_time=trim(request.form("web_time"))
set rs=server.createobject("adodb.recordset")
sql="select * from web_settings"
rs.open(sql),cn,1,3
rs("web_name")=web_name
rs("web_url")=web_url
rs("web_image")=web_image
rs("web_title")=web_title
rs("web_keywords")=web_keywords
rs("web_description")=web_description
rs("web_TopHTML")=web_TopHTML
rs("web_BottomHTM")=web_BottomHTM
rs("web_copyright")=web_copyright
rs("web_contact")=web_contact
rs("web_person")=web_person
rs("web_birthdate")=web_birthdate
rs("web_birthplace")=web_birthplace
rs("web_shortintro")=web_shortintro
rs("web_email")=web_email
rs("web_tel")=web_tel
rs("web_ModelEdit")=web_ModelEdit
rs("web_time")=web_time
rs.update
rs.close
set rs=nothing
response.Write "<script language='javascript'>alert('修改成功!');location.href='web_settings.asp';</script>"
end if
%>
rs("web_BottomHTM")=web_BottomHTM 最后少谢了L 但是我写上了 问题依旧 展开
3个回答
展开全部
你把修改成功删掉看看,好像是那里换行了导致的。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
应该有错误提示信息吧,贴出来,再根据错误信息处理。
检查程序的同时,查一下数据库的表结构,有没有字段类型、长度等的限制。
检查程序的同时,查一下数据库的表结构,有没有字段类型、长度等的限制。
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询