CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Redirect Examples

Print topic Send  topic

Author Message
claudeless
Posted: 07/18/2005, 7:14 AM

Hi I'm looking for some Custom Code Examples to do the Following



At the Login Screen...
After you Login in...
Based on Group ID you are redirected to a certain Page...

Example
gid = 10 page1.php
gid = 20 page2.php
gid = 30 page3.php
gid = 40 page4.php
gid =999 adminpage.php



Thanks...


Nicole

Posts: 586
Posted: 07/18/2005, 7:55 AM

Hello,
You can refer to this topic, it provides several useful links
http://forums.codecharge.com/posts.php?post_id=55208

_________________
Regards,
Nicole
View profile  Send private message
claudeless
Posted: 07/18/2005, 9:38 AM

:-/

Can you please POST a WORKING PHP EXAMPLE.

I've read all of those posts....
and can not get them to work.

peterr


Posts: 5971
Posted: 07/18/2005, 10:40 AM

That's a strange request. At least two of those posts contain the exact, working PHP code.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
claudeless
Posted: 07/18/2005, 1:30 PM

I must be nuts... i CAN NOT get this to work



//Today_BeforeShow @11-8998AECA
//Login1_Button_DoLogin_OnClick @26-A2C35424
function Login1_Button_DoLogin_OnClick()
{
$Login1_Button_DoLogin_OnClick = true;
//End Login1_Button_DoLogin_OnClick

//Login @27-C3E1DA4B
global $Login1;
if(!CCLoginUser($Login1->login->Value, $Login1->password->Value))
{
$Login1->Errors->addError("Login or Password is incorrect.");
$Login1->password->SetValue("");
$Login1_Button_DoLogin_OnClick = false;
}
//End Login

//Custom Code @32-786D3FD6
// -------------------------
global $Login1;
global $Redirect;

if((CCGetGroupID() == 5) && (CCGetFromGet("ret_link", "") == ""))
$Redirect = "/Livemaint1/IKON/Ikonspace.php";
if((CCGetGroupID() == 100) && (CCGetFromGet("ret_link", "") == ""))
$Redirect = "/Livemaint1/Workspace.php";

// -------------------------
//End Custom Code

//Close Login1_Button_DoLogin_OnClick @26-53D741FA
return $Login1_Button_DoLogin_OnClick;
}
//End Close Login1_Button_DoLogin_OnClick

//Page_BeforeShow @1-D8BD2467
function Page_BeforeShow()
{
$Page_BeforeShow = true;
//End Page_BeforeShow
peterr


Posts: 5971
Posted: 07/18/2005, 3:29 PM

Possibly you could explain what specifically is not working and how.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


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

Web Database

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.