救救,我怎么设置都不能调用我的事件。。。
<form id="form1" name="form1" method="post" onSubmit="return checkreg();" action="">
<table width="98%" cellpadding="4" cellspacing="0" style="border:4px solid #EAFCE6;">
<tr>
<td height="23" align="left"><span class="STYLE4">用户名和密码:</span></td>
</tr>
<tr bgcolor="#EAFCE6">
<td height="29" bgcolor="#EAFCE6" align="left"><font color="#CC0000">*</font> 用 户 名:
<input type="text" name="username" size="18" maxlength="20" >
<input type="button" name="check" value="检测用户" tabindex="50">
支持中文,不支持特殊符号如:*%#!-&%$</td>
</tr>
大家看看,我怎么设置都不能调用我的事件。。。
<%
if not isempty (request.Form("check")) then if request.Form("username")<>""then
set rs=server.createobject("adodb.recordset")
rs.open "select username from [bout_user] where username='"&str_filter(request.Form("username"))&"'",conn,1,3
if rs.eof then
response.Write("<script language='javascript'>arert('此用户可以使用!');</script>")
else
response.Write("<script language='javascript'>arert('此用户已存在,请重新输入!');</script>")
end if
rs.close
set rs=nothing
else
response.Write("<script language='javascript'>arert('请输入用户名!');</script>")
end if
end if
if not isempty (request.Form("sumbit")) then call reg_check()
end if
%>
上面为事件,,,大家帮忙看看问题,在哪里。。。。。。。。。。。