会员级别跳转页面问题请教?
假如VIP会员 登入 跳转至VIP.asp,
假如VIP2会员 登入 跳转至VIP2.asp,
假如VIP3会员 登入 跳转至VIP3.asp,
假如VIP4会员 登入 跳转至VIP4.asp,
否则跳转至reg.asp页面;
下面是这样的:
'判断帐号及密码是否正确
set recCheckUser=server.CreateObject("ADODB.recordset")
uid=trim(Request("userid"))
upwd=trim(Request("password"))
strSQL="select * from userinfo where txtId='" & uid & "' and txtPass='" & upwd & "'"
recCheckUser.Open strSQL,conn
if not recCheckUser.EOF then
'如果用户帐号及密码正确
'检测用户帐号是否审核通过或被锁定
If CheckUserIdBegin(Uid)=0 Then
Response.Write "<script language=JavaScript>{window.alert('此会员帐号尚未通过验证,请尽快与我们联系!');window.history.go(-1);}</script>"
response.end
End If
'用户进入,就是这句怎样识别会员类型及跳转的页面
call UserEnter(uid,1)
response.Redirect("vip.asp")
Response.End
else
'用户帐号及密码不正确
recCheckUser.Close
set recCheckUser=nothing
set conn=nothing
Response.Write "<script language=JavaScript>{window.alert('您输入的帐号及密码错误,请重新输入!');window.history.go(-1);}</script>"
end if
这些代码怎么写?