在asp注册中,怎么使用用户名验证??代码是什么??

来源:百度知道 编辑:UC知道 时间:2024/05/29 18:53:22
我现在在代码里已经有一个form 了
<body>
<table width="512" height="234" border="0">
<tr>
<th width="506" scope="col"><form name="form1" method="post" action="save0.asp">
新用户注册</p>
<p align="left">用户名:
<input type="text" name="yhm">
<input type="submit" name="jc" value="检测用户名是否已被使用!">
</p>
<p align="left">用户密码:
<input type="password" name="mima">
</p>
<p align="left">确认密码:
<input type="password" name="mima1">
</p>
<p align="center">
<input type="submit" name="Submit" value="提交">
<inp

可以打开表,然后读出所有数据,然后查询是否一直

rs.open "select * from 表名",conn,1,3
if not rs.bof and not rs.eof then
response.write "有重名,不可以注册!"
else
response.write "可以注册!"
end if