CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Redirection Based on Group ID

Print topic Send  topic

Author Message
Jay Bond
Posted: 11/08/2002, 11:09 AM

I am trying to get the login page to redirect to pages dependent upon groupid that the user belongs to:

The follwoing code just loops back to itself

Any IDeas as to what is wrong,

in the address bar I am getting IlligalGroup, but can't understand why?

Function Login_DoLogin_OnClick() 'Login_DoLogin_OnClick @3-FA16D195

'Login @4-A0860347
With Login
If NOT CCLoginUser(.login.Value, .password.Value) Then
.Errors.addError("Login or Password is incorrect.")
Login_DoLogin_OnClick = False
.password.Value = ""
Else
Select Case Session("GroupID")
Case 1 Redirect="case.asp"
Case 2 Redirect="case.asp"
Case 3 Redirect="case.asp"
Case 4 Redirect="admin_site.asp"
End Select
Login_DoLogin_OnClick = True
End If
End With
'End Login

End Function 'Close Login_DoLogin_OnClick @3-54C34B28

Jay Bond
Posted: 11/09/2002, 2:13 AM

Sorry Everyone, the code was fine, the problem was the Groupid value in the user table had incorrect values.

Sorry.

BUT THE CODE WORKS FINE IF ANYONE ELSE WANTS THIS FACILITY

note make sure that the reurn page is blank.


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.