<%uname=request.form("username")%>
<%
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from Review where Author='"&uname&"'"
rs.open sql,conn,1,1
%>
<%if rs("Author")<>"" then%>
<%if rs("Author")<>""&uname&"" then%>
<%else%>
用户名重复了,谢谢!!!<%=response.end%>
<%end if%>
<%else%>
用户名没写,谢谢!!!<%=response.end%>
<%end if%>
<%
rs.close
set rs=nothing
%>
其中:<%uname=request.form("username")%>里面的“username”是表单提交过来的值