CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Update an session with radio button

Print topic Send  topic

Author Message
Ivo
Posted: 03/31/2004, 11:34 PM

Hello,

At page quiz.php I have a question with 4 answer possibilities (radio buttons). The value (Bound Column) is stored in my database. After submit the return page is score.

At the quiz page I set the session score at 0. And at the score page I get the session, before show: $Label1->SetValue(CCGetSession("score"));

The session is working good, but I want to update the session with the radio button. In the Control Source field I only can choose an database field, how to update the session instead of a database field?

Tnx for helping!

Kind Regards,
Ivo
peterr


Posts: 5971
Posted: 04/01/2004, 12:57 AM

I'm not 100% sure if this will work as I haven't tested this, but possibly you could add code in your page's "After Initialize" event to check if the button value was submitted (CCGetParam) and if so then assign it to the session (CCSetSession) and then redirect the page to the destination page using the $Redirect variable ( http://docs.codecharge.com/studio/html/QuickStart/EnhAp...rInitEvent.html )
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Ivo
Posted: 04/02/2004, 12:29 AM

I have the solution :) There is a option in CCS to fix the problem :)

AfterExecuteUpdate of the GridForm Quiz an then Save Control Value. Settings: Control Name= radio, Destination type = session, Destination name = score.

The script now is automatically like this:
CCSetSession("score", $quiz->radio->GetValue());

I post this reply because I think I'm not the only one with the problem/question..

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.