ADODB.Command (0x800A0CC1)在对应所需名称或序数的集合中,未找到项目。
代码加粗的唯有错的位置,请高手班我解决一下。万分感谢!!!!<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> 登录界面 </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<!--#include file="fun.asp"-->
</HEAD>
<script language="vbscript">
sub cmd_onclick()
if frm1.zh.value="" then
alert "帐号不能为空"
frm1.zh.focus
elseif frm1.psw.value="" then
alert "密码不能为空"
frm1.psw.focus
else
frm1.submit
end if
end sub
sub set_onclick()
frm1.zh.focus
end sub
</script>
<style type="text/css">
#ta{
border-style:solid;
border-color:#CC0000;
}
</style>
<BODY>
<center>
<form action="" method="post" name="frm1">
<TABLE width="302" height="138" id="ta">
<TR>
<TD><center><b>用户名:</b></center></TD>
<TD><input type="text" name="zh" id="td" style="width:150px"></TD>
</TR>
<TR>
<TD><center><b>密  码:</b></center></TD>
<TD><input type="password" name="psw" id="td" style="width:150px"></TD>
</TR>
<TR>
<TD colspan=2><center><input type="button" value="登录" name="cmd"> <input type="reset" name="set"></center></TD>
</TR>
<input type="hidden" name="hi" value="1">
</TABLE></form></center>
<center><%
dim zha,mma,sqla
zh=request.Form("zh")
mm=request.Form("psw")
conopen
cmd.parameters("@zh")=zha
cmd.parameters("@mm")=mma
cmd.execute
sqla=cmd.parameters("@sql")
if request.Form("hi")="1" and sql=2 then
response.Write "<script language='javascript'>alert('帐号不存在或密码不正确');</script>"
end if
%></center>
</BODY>
</HTML>