dw登录界面跳转问题

来源:百度知道 编辑:UC知道 时间:2024/05/09 15:49:21
我想做一个管理系统的登录页面,可以供多用户登录,比如老师,学生,然后不同身份的人跳转到不同页面.
请问该怎么做,详细点,最好能有源码.
就是用DreamWeaver做,我也知道,但我只会做一个跳转,不能分类跳

在资料库中用户资料表中,添加一个字段名为身份识别,若为flag=1老师,flag=2学生
<!--#include file="conn.asp" -->
<%
session("flag")=rs("flag")
Function checkPermission()
If Session("flag")=1 then
checkPermission=TRUE
Else
checkPermission=FALSE
End if
End Function

tmp=checkPermission()
If tmp=TRUE then %>
编辑老师页面.....

<%
Else
response.redirect "学生页面"
End if
%>
//学生页面另做,学生页面就不需要+判断了。

用DreamWear搞

给你提供一个思路,在资料库中用户资料表中,添加一个字段名为身份识别,若为flag=1老师,flag=2学生
if 登录资料与用户资料表中的资料一致 then
session("flag")=rs("flag")
if session("flag")=1 then
response.write"<script>alert('登录成功,转入老师页面!');window.location='老师相关页面.asp'</script>"
elseif session("flag")=2 then
response.write"<script>alert('登录成功,转入学生页面!');window.