muebelacker
Posts: 5
|
| Posted: 01/28/2008, 7:10 AM |
|
Hello All,
i've a Login Page and i want to use the username to select a special entry in a listbox. So i insert a custom code on the clientside on the Login Button.
window.location.href = "Login.php?login=" + login.value;
then i modified the Listbox like this
SELECT name FROM mitarbeiter_login WHERE benutzer={login}
but this do not work any hints?
br
Mathias
|
 |
 |
wkempees
|
| Posted: 01/28/2008, 4:29 PM |
|
Reading your problem description, you do this after succesful login, right?
After the Login procedure succesfuly completes it sets a number of session
variables.
CCS has a number of functions to retreive these values.
CCGetUserID
CCGetGroupID
CCGetUserLogin
(See HelpFile)
So your plain SQL would become
> SELECT name FROM mitarbeiter_login WHERE benutzer=CCGetUserLogin();
(depending on wehere you put this statemen you will need quotes.)
Walter
"muebelacker" <muebelacker@forum.codecharge> schreef in bericht
news:5479df0681091e@news.codecharge.com...
> Hello All,
>
> i've a Login Page and i want to use the username to select a special entry
> in a
> listbox. So i insert a custom code on the clientside on the Login Button.
>
> window.location.href = "Login.php?login=" + login.value;
>
> then i modified the Listbox like this
>
> SELECT name FROM mitarbeiter_login WHERE benutzer={login}
>
> but this do not work any hints?
>
> br
> Mathias
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|