<%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”是表單提交過來的值