login.asp里
<%
if request.form("username") <> "" and request.form("pwd")<> "" then
你原来的登录代码
else
response.redirect(request.servervariables("HTTP_REFER"))'返回前一页
end if %>
login.asp
---------
<%
if request.form("username")="" or request.form("pwd")="" then
response.write ""
end if
%>
if request.form("username") <> "" and request.form("pwd")<> "" then
else