数据库连接错误 送20分
问题1
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/newdata.asp" -->
<%
if request.Form("dl_name")="" then
response.Redirect "succeerro.htm"
end if
dim jiaoshi
set jiaoshi=server.CreateObject("ADODB.recordset")
jiaoshi.open "select dl_name from student where dl_name='" & request.form("dl_name") & "'",conn,1,3 这行有错误
if jiaoshi.recordcount = 0 then
jiaoshi.addnew
jiaoshi("id")= request.Form("id")
jiaoshi("dl_name")= request.Form("dl_name")
jiaoshi("name")= request.Form("name")
jiaoshi("pass")= request.Form("pass")
jiaoshi("yz_pass")= request.Form("yz_pass")
jiaoshi("xl")= request.Form("xl")
jiaoshi("type")= request.Form("type")
jiaoshi.update
jiaoshi.close
set jiaoshi=nothing
response.Redirect "succe.htm"
else
jiaoshi.close
set jiaoshi=nothing
response.Redirect "succeerro.htm"
end if
%>
--------------------------------------------------------------
Microsoft VBScript 编译器错误 错误 '800a03f6'
缺少 'End'
/iisHelp/common/500-100.asp,行242
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e10'
[Microsoft][ODBC Microsoft Access Driver] 参数不足,期待是 1。
/jiaoshiupdate.asp,行9
问题2
页面内只有一个form1
form1.submit 不能执行
<script language=vbscript>
jiaoshi_submit()
...... 相关的合法性验证
form1.submit 这里不能执行
end sub
</script>
错误:对象不支持此属性或方法:'form1.submit'
代码:0