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 |
|
|
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..
|
|
|
|