Microsoft VBScript 编译器错误 错误 '800a0408' 无效字符 10
MicrosoftVBScript编译器错误错误'800a0408'无效字符/addok.asp,行24rs.open"select*fromuser",conn,1,3...
Microsoft VBScript 编译器错误 错误 '800a0408'
无效字符
/addok.asp,行 24
rs.open "select * from user",conn,1,3銆€銆€銆€
----------------------------------^
<%@LANGUAGE="VBScript" codepage="936"%>
<!--#include file="Connections/CONN1.asp"-->
<meta http-equiv="refresh" content="2;URL=index.asp">
<%
if request.form("number")="" then
Response.Write "<script>alert('请填写会员编号!');histor y.back();</script>"
Response.End
end if
if request.form("name")="" then
Response.Write "<script>alert('请填写会员名称!');histor y.back();</script>"
Response.End
end if
if request.form("phone")="" then
Response.Write "<script>alert('请填写会员联系电话!');histor y.back();</script>"
Response.End
end if
if request.form("address")="" then
Response.Write "<script>alert('请填写会员配送地址!');histor y.back();</script>"
Response.End
end if
%>
<%
set rs=server.createobject("ADODB.Recordset")
rs.open "select * from user",conn,1,3
rs.addnew
number=request.form("number")
name=request.form("name")
sex=request.form("sex")
age=request.form("age")
birthday=request.form("birthday")
identity=request.form("identity")
phone=request.form("phone")
qq=request.form("qq")
email=request.form("email")
address=request.form("address")
class1=request.form("class1")
class2=request.form("class2")
rs("number")=number
rs("name")=name
rs("sex")=sex
rs("age")=age
rs("birthday")=birthday
rs("identity")=identity
rs("phone")=phone
rs("qq")=qq
rs("email")=email
rs("address")=address
rs("class1")=class1
rs("class2")=class2
rs.update
rs.close
set rs=nothing
conn.close
set rs=nothing
%>
<center><font size="2em">会员添加成功,2秒后自动跳转到首页</font></center>
下面的也不对,自己搞定了。 展开
无效字符
/addok.asp,行 24
rs.open "select * from user",conn,1,3銆€銆€銆€
----------------------------------^
<%@LANGUAGE="VBScript" codepage="936"%>
<!--#include file="Connections/CONN1.asp"-->
<meta http-equiv="refresh" content="2;URL=index.asp">
<%
if request.form("number")="" then
Response.Write "<script>alert('请填写会员编号!');histor y.back();</script>"
Response.End
end if
if request.form("name")="" then
Response.Write "<script>alert('请填写会员名称!');histor y.back();</script>"
Response.End
end if
if request.form("phone")="" then
Response.Write "<script>alert('请填写会员联系电话!');histor y.back();</script>"
Response.End
end if
if request.form("address")="" then
Response.Write "<script>alert('请填写会员配送地址!');histor y.back();</script>"
Response.End
end if
%>
<%
set rs=server.createobject("ADODB.Recordset")
rs.open "select * from user",conn,1,3
rs.addnew
number=request.form("number")
name=request.form("name")
sex=request.form("sex")
age=request.form("age")
birthday=request.form("birthday")
identity=request.form("identity")
phone=request.form("phone")
qq=request.form("qq")
email=request.form("email")
address=request.form("address")
class1=request.form("class1")
class2=request.form("class2")
rs("number")=number
rs("name")=name
rs("sex")=sex
rs("age")=age
rs("birthday")=birthday
rs("identity")=identity
rs("phone")=phone
rs("qq")=qq
rs("email")=email
rs("address")=address
rs("class1")=class1
rs("class2")=class2
rs.update
rs.close
set rs=nothing
conn.close
set rs=nothing
%>
<center><font size="2em">会员添加成功,2秒后自动跳转到首页</font></center>
下面的也不对,自己搞定了。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询