Forums

This topic is locked

Redirect within login recordset

Posted 10 Mar 2003 22:02:03
1
has voted
10 Mar 2003 22:02:03 Jelle-Jacob de Vries posted:
How can I create a redirect within the login recordset that DMX creates?

I want to redirect based on a value in my database somthing like:

if (rsUser.Fields.Item("access" = "no" then
Response.redirect("default.asp?access=false"

How can I achieve this?

Replies

Replied 11 Mar 2003 16:22:48
11 Mar 2003 16:22:48 anouar stevens replied:
after recorset you have to write this code

<%
IF rsRecordset1_var1 <> "1" AND NOT Recordset1.EOF then
if Recordset1.Fields.Item("UserLevel" = "com" then
Response.Redirect "Login1.asp"
Else
Response.Redirect "Login54.asp"
End If
End If
%>

don't forget to change the name of recorset ro rsUser <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
good luck

Reply to this topic