急!!等待中???
<%set conn=server.createobject("adodb.connection")
conn.open "provider=microsoft.jet.oledb.4.0;data source="&server.mappath("../database/db.mdb")
if request.form("submitss")<>"" then
usernames=request.form("usernames")
if usernames="" then
response.write("<script>alert('用户名为空!');</script>")
else
set rs=server.createobject("adodb.recordset")
rs.open"select username from admin where username='"&usernames&"'",conn,1,3
if rs.eof and rs.bof then
response.write("<script>alert('用户名可以使用!');</script>")
else
response.write("<script>alert('用户名已存在!');</script>")
end if
end if
elseif request.form("submits")<>"" then
pad=request.form("pad")
pads=request.form("pads")
if pad="" or pads="" then
response.write("<script>alert'请输入完整!';</script>")
else
if pad<>pads then
response.write("<script>alert'输入的两次密码不一样!';</script>")
else
set rs=server.createobject("adodb.recordset")
rs.open"select * from admin ",conn,1,3
rs1.addnew
rs1("username")=usernames
rs1("password")=pad
rs1.update
end if
end if
end if
%>
<body>
<table align=center>
<tr>
<td><form>
<table border=1>
<tr>
<td>用户名:</td><td><input type=text name=usernames></td>
</tr>
<tr>
<td>密码:</td><td><input type=password name=pad></td>
</tr>
<tr>
<td>确认密码:</td><td><input type=password name=pads></td>
</tr>
<tr>
<td colspan=2><div align=center><input type=submit value=提交 name=submits></div></td>
</tr>
</table>
</form></td><td valign=top><input type=submit value=检验用户名是否唯一 name=submitss ></td>
</tr>
</table>
</body>
错吗?我看了好几遍了,不觉得错,帮忙看一下!!谢谢!!!