<?xml version="1.0" encoding="UTF-8"?>
<%
 username=trim(request("username")) 
if username="" then
%>
<b><font color="#FF0000">×</b>请输入你的用户名！&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>
<%
response.end
end if
%>
<%
if len(username) <6 or len(username) > 20 then
%>
<b><font color="#FF0000">×</b>用户名长度在6-20个字符！&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>
<%
response.end
end if
%>
<%
if InStr(username,",") >= 1 OR  InStr(username,"%") >=1 OR InStr(username,"'") >=1  OR InStr(username,"=") >=1  OR InStr(username,"<") >=1 OR InStr(username,">") >=1 then%>
<b><font color="#FF0000">×</b>用户名中不能有%、'、=、&lt;和&gt;等非法字符！&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>
<%
response.end
end if
%>
<!--#include file="byshop_conn.asp"-->
<%
username=repalce(username,"'","")
set rs=server.CreateObject ("adodb.recordset")
sql="select * from pysjzx_user where username='"&username&"'"
rs.open sql,conn,1,1 %>
<% if rs.eof then
%>
<b><font color="#008000">√</font></b>此用户名还没被人注册，可以注册！&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<%
else%>
<b><font color="#FF0000">×</b>此用户名已被人注册，请您另选用户名！&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>
<%
end if%> 
 