
chrisxs5
Posts: 13
|
| Posted: 03/27/2008, 7:49 AM |
|
I would like for after the user logs in to be taken to a list that is based only on the users info:
Webusers = userID (Used for Login)
WebuserClient = userID (Used to get Client based on the userID)
Client = userID (Is Primary Key for rest of database)
I cant get pass this.
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 03/27/2008, 7:57 AM |
|
http://forums.codecharge.com/posts.php?post_id=89684&s_...d=filter+userid http://forums.codecharge.com/posts.php?post_id=88026&s_...d=filter+userid http://forums.codecharge.com/posts.php?post_id=67714&s_...d=filter+userid
Post found by, using the SEARCH in the top menu of this forum.
Search term: filter userid
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
chrisxs5
Posts: 13
|
| Posted: 03/27/2008, 8:46 AM |
|
Thanks for those very, very much. I did search first but didnt search correctly.
That appears to be working great on that page. HOw do I make the login page go to the client page on login?
(Edit out one question because I researched and found the answer)
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 03/27/2008, 9:08 AM |
|
http://docs.codecharge.com/studio31/html/index.html?htt...irectUsers.html
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
chrisxs5
Posts: 13
|
| Posted: 03/27/2008, 12:03 PM |
|
Studied and studied, cant seem to get it correct, any thoughts?
<?php
//BindEvents Method @1-096E3C73
function BindEvents()
{
global $Login;
$Login->Button_DoLogin->CCSEvents["OnClick"] = "Login_Button_DoLogin_OnClick";
}
//End BindEvents Method
//Login_Button_DoLogin_OnClick @3-1454CF55
function Login_Button_DoLogin_OnClick(& $sender)
{
$Login_Button_DoLogin_OnClick = true;
$Component = & $sender;
$Container = & CCGetParentContainer($sender);
global $Login; //Compatibility
//End Login_Button_DoLogin_OnClick
//Login @4-6AB1694B
global $CCSLocales;
global $Redirect;
if ($Container->autoLogin->Value != $Container->autoLogin->CheckedValue) {
CCSetCookie("PTDadvisorLogin", "");
}
if ( !CCLoginUser( $Container->login->Value, $Container->password->Value)) {
$Container->Errors->addError($CCSLocales->GetText("CCS_LoginError"));
$Container->password->SetValue("");
$Login_Button_DoLogin_OnClick = 0;
CCSetCookie("PTDadvisorLogin", "");
} else {
global $Redirect;
if ($Container->autoLogin->Value == $Container->autoLogin->CheckedValue) {
$ALLogin = $Container->login->Value;
$ALPassword = $Container->password->Value;
CCSetALCookie($ALLogin, $ALPassword);
}
$Redirect = CCGetParam("ret_link", $Redirect);
$Login_Button_DoLogin_OnClick = 1;
}
Function Red_Clients_login(Sender) {
Redirect = "Clients_list.asp"
}
//End Login
//Close Login_Button_DoLogin_OnClick @3-0EB5DCFE
return $Login_Button_DoLogin_OnClick;
return $Red_Clients_login;
}
//End Close Login_Button_DoLogin_OnClick
|
 |
 |
chrisxs5
Posts: 13
|
| Posted: 03/28/2008, 6:53 AM |
|
I am completely just going in circles now, nothing I can do seems to work!!!
|
 |
 |
chrisxs5
Posts: 13
|
| Posted: 03/28/2008, 8:19 AM |
|
Solution from Support:
Thank you, that's good to hear the sessions are configured correctly. Please navigate to the Login form in Project Explorer, you will see the Record's properties displayed in Properties Window. Switch to Data Tab and find the Return Page property there. Do the same thing for the Login Button (Button's properties in Properties Window ->Data Tab->Return Page property).
Such an easy solution, thanks to Kate L
|
 |
 |
|

|
|
|
|