<%@ Language=Jscript %> <HTML> <HEAD> </HEAD> <BODY bgcolor="BEIGE"><P align="center"><strong><font size="6">后台管理系统</font></strong></P> <HR> <% Bt = Request.Form("name")(1); Nr = Request.Form("xh")(1); if ("" == Bt) { Response.Write("<P align='center'>标题不能为空!请返回填写。</p>"); Response.End(); } if ("" == Nr) { Response.Write("<P align='center'>内容不能为空!请返回填写。</p>"); Response.End(); } %> <% var conn = Server.CreateObject("ADODB.Connection"); conn.Open("driver={Microsoft Access Driver (*.mdb)};dbq=" + Server.MapPath("db1.mdb")); SQL = "insert into yf(name,xh) values('" + Bt + "','" + Nr + "')"; conn.Execute(SQL); conn.close(); %> <HR> </BODY> </HTML>
第九行数组越界。为什么????? 我该怎么办??