CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 create custom session variable

Print topic Send  topic

Author Message
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
View profile  Send private message
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/
>


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.

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.