以下是引用片段: <!--#include file='conn.asp'--> <%if Request.QueryString('action')='Isreg' then name=Request.QueryString('name') ’以上为ajax.js的两个传递 namelng=len(name) if namelng<4 or namelng>20 then response.write '<font color=#ff0000>用户名长度不符。</font>' else set Isins=conn.Execute('select [name] from [user] where [name]=’'&name&'’') if (Isins.bof and Isins.eof) then response.write '可以注册' else response.write '<font color=#ff0000>已被注册</font>' end if end if set Isins=nothing end if%>