请各位高手帮帮忙!!
<%
membername=request.Form("Leaguername")
set rs=server.CreateObject("adodb.recordset")
sql="select * from job_ILeag where ILeag_loginname='"&membername&"'"
rs.open sql,conn,1,3
if rs.recordcount=0 then
rs.addnew
rs("ILeag_loginname")=request.Form("Leaguername")
rs("ILeag_url")=request.Form("url")
rs.update
Response.Write "<script>alert('会员注册成功,请登陆后发布简历!');window.location='index.asp';</script>"
else
Response.Write "<script>alert('此会员号已有人注册,请重新选择会员号!');window.location='RegPerLoInfo.asp';</script>"
end if
rs.close
set rs=nothing
%>
这样判断有没有重复的会员注册怎么不能实现这个功能呀?
response.write(request.Form("Leaguername")&"<br>")
if rs.eof then
rs.addnew
rs("ILeag_loginname")=request.Form("Leaguername")
rs("ILeag_url")=request.Form("url")
rs.update
Response.Write "<script>alert('会员注册成功,请登陆后发布简历!');window.location='index.asp';</script>"
else
response.write(rs("ILeag_loginname")&"<br>")
Response.Write "<script>alert('此会员号已有人注册,请重新选择会员号!');window.location='RegPerLoInfo.asp';</script>"
end if