checkuser.asp: <%ys_name=request("username") ys_pass=request("password") ys_email=request("email") set jrs=server.CreateObject("adodb.recordset") jsql="select ys_name,id from ys_imember where ys_name='"&ys_name&"'" jrs.open jsql,conn,1,1 if jrs.eof and jrs.bof then set rs=server.CreateObject("adodb.recordset") sql="select * from ys_imember where id is null" rs.open sql,conn,1,3 rs.addnew rs("ys_name")=ys_name rs("ys_pass")=ys_pass rs("ys_email")=ys_email rs.update Session("ys_userame")=ys_name rs.close set rs=nothing response.write "1" else response.write "0" end if jrs.close set jrs=nothing %>