Hi
I have got a login page reading an table within an SQL database. What I need to do is to redirect users depening on certian criteria linked to that user. For example the user table would have the following fields - Username; Password; Company; Designation and depending on any combanation it should redirect it to a certian page.
At the moment I have something like this:
sql = "SELECT * FROM tUsers WHERE " & _
"UserName='" & Request.Form("UserName") & "' AND " & _
"UserPassword='" & Request.Form("UserPassword") & "' "
Set Rs = Cm.Execute(sql)
If Rs.EOF Then
Session("Authenticated") = 0
Response.Redirect ("../Customer login_error.asp")
Else
Session("Authenticated") = 1
Response.Redirect ("welcome.asp")
End If
Would this be possible using a single logon? If so please point me in the right direction...
Rgrds
M
Such is Life!