<%
user_name=request.form("user_name")
user_code=request.form("user_code")
''''中間的安全過濾自己寫
sql="select * from user where user_name='"&user_name&"' and user_code='"&user_code&"'"
set rs=conn.execute(sql)
if(rs.eof and rs.bof) then
'''這裏寫用戶不存在的代碼段
else
if(rs("user_right")=1) then
''如果user_right字段是1,則跳轉到管理員界面
response.redirect("管理員頁面的名字")
else
''如果不是1,就跳轉到學生界面
response.redirect("學生界面的名字")
end if
end if
rs.close
set rs=nothing
%>
不知道我答沒答對,或者理沒理解對妳的意思。