错误 '800a03f6' 缺少 'End' --可是根本不缺呀~郁闷!
Microsoft VBScript 编译器错误 错误 '800a03f6'
缺少 'End'
/iisHelp/common/500-100.asp,行242
Microsoft VBScript 编译器错误 错误 '800a03f6'
缺少 'End'
/chat/news_save.asp,行76
============
<!--#include file="conn.asp" -->
<!--#include file="ubb.asp" -->
<%
dim admin,pw
admin=Trim(Request.form("admin"))
pw=Trim(Request.form("pw"))
if admin="" then
%>
<script language=javascript>
alert("错误:请输入用户名!" );
location.href = "javascript:history.back()"
</script>
<%end if
if pw="" then%>
<script language=javascript>
alert("错误:请输入管理密码!");
location.href = "javascript:history.back()"
</script>
<%end if%>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From admin where admin='" &admin&"'", conn, 3,3
%>
<%if rs.bof then %>
<script language=javascript>
alert("错误:此用户名不存在!");
location.href = "javascript:history.back()"
</script>
<%elseif pw<>rs("pw") then%>
<script language=javascript>
alert("错误:您的密码不正确!");
location.href = "javascript:history.back()"
</script>
<%else%>
<%
dim tital,nei,radiobuttonn
radiobuttonn=Trim(Request.form("radiobutton"))
tital=Trim(Request.form("tital"))
nei=Trim(Request.form("textarea"))
nei=ubbcode(nei)
if trim(tital="") then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('请填入标题!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
response.end
end if
if trim(nei)="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('请填入内容!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
response.end
end if
if trim(radiobutton)="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('请填入内容!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
response.end
end if
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "news",conn,1,2
rs.addnew
rs("tital")=tital
rs("leibie")=radiobuttonn
rs("nei")=nei
rs("date")=now
rs.update
Response.Write("<script language=javascript>alert('tian jia cheng gong!');window.location.href='news_add.asp'</script>")
end if ---------------------------就是这里了
%>