当前位置:编程学习 > JS >>

Microsoft VBScript 编译器错误 '800a03ea'

Microsoft VBScript 编译器错误 '800a03ea'

语法错误

\\save.asp, line 24

代码如下:
<!-- #include file="conn.asp" -->
<html>

</head>

<%
name=request("name")
address=request("易做图")
email=request("know")
title=request("major")
comment=request.form("address")
comment=replace(resource,"<","<")
name=replace(name,"<","<")
address=replace(address,"<","<")
email=replace(email,"<","<")
title=replace(title,"<","<")

fortime=formatdatetime(time,4)
datenow=year(now())&"-"&month(now())&"-"&day(now())&" "&fortime
conn.execute(sql)
response.write "<font size=+2 color=red><br><br><center><b>报名成功!</b></font><br><br><a href=JavaScript:history.back();>请返回</a></center>"
conn.close
else
response.write "<font size=+2 color=red><br><br><br><center>没有填写完整!<a href=JavaScript:history.back();>请返回</a></center></font>"
end if
%>
</body>

</html>

成功帮忙解决问题后,保证加分。
答案:&lt;%
name=request("name")
address=request("易做图")
email=request("know")
title=request("major")
comment=request.form("address")
comment=replace(resource,"&lt;","&lt;")
name=replace(name,"&lt;","&lt;")
address=replace(address,"&lt;","&lt;")
email=replace(email,"&lt;","&lt;")
title=replace(title,"&lt;","&lt;")

fortime=formatdatetime(time,4)
datenow=year(now())&"-"&month(now())&"-"&day(now())&" "&fortime
conn.execute(sql)
If Err.Number = 0 Then
response.write "&lt;font size=+2 color=red&gt;&lt;br&gt;&lt;br&gt;&lt;center&gt;&lt;b&gt;报名成功!&lt;/b&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;&lt;a href=> conn.close
else
response.write "&lt;font size=+2 color=red&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;center&gt;没有填写完整!&lt;a href=> end if
%&gt;

上一个:推荐几本初级到高级的书包括 Java/Python/C# 三种语言 HTML/Javascript/CSS ,以及各种编程,不要傻瓜式的,最好是从初级到高级,hei客红客也来
下一个:我想学java 毕业搞这混……需要学哪些啊 不可能只学JAVA吧 !数据库?、HTML?JavaScript ,JSP?PL/SQL 语言??

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,