templemedia
Posts: 34
|
| Posted: 08/28/2005, 6:28 PM |
|
Hi
I need to be able to create a custom seesion variable from a Listbox setting on a login form.
The login form has a Listbox called subscriptions. I want to be able to assign the selected value of the subscriptions listbox to a session variable called SubscriptionsInfo so that this can be passed to the page that the login form redirects to.
This is the custom code below that I have inserted in to the onclick event of the login button:-
$db = new clsDBConnection1();
CCSetSession("SubscriptionInfo", CCDLookup("Subscription","main_data","Subscription=".$db->ToSQL(CCGetFromGet("Subscription",""),ccsText),$db);
$db->close();
I am having trouble with the format for the CCDLookUP function, as currently the login in page is blank when generated
Can anyone point me in the right direction?
Many thanks
Regards
Richard
|
 |
 |
DonB
|
| Posted: 08/28/2005, 8:07 PM |
|
For starters, the function is "CCDLookUp" - you have the "U" in lowercase.
--
DonB
http://www.gotodon.com/ccbth
"templemedia" <templemedia@forum.codecharge> wrote in message
news:5431264cdb4d37@news.codecharge.com...
> Hi
>
> I need to be able to create a custom seesion variable from a Listbox
setting on
> a login form.
>
> The login form has a Listbox called subscriptions. I want to be able to
assign
> the selected value of the subscriptions listbox to a session variable
called
> SubscriptionsInfo so that this can be passed to the page that the login
form
> redirects to.
>
> This is the custom code below that I have inserted in to the onclick event
of
> the login button:-
>
> $db = new clsDBConnection1();
> CCSetSession("SubscriptionInfo",
>
CCDLookup("Subscription","main_data","Subscription=".$db->ToSQL(CCGetFromGet
("Subscription",""),ccsText),$db);
> $db->close();
>
> I am having trouble with the format for the CCDLookUP function, as
currently
> the login in page is blank when generated
>
> Can anyone point me in the right direction?
>
> Many thanks
>
> Regards
>
> Richard
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|