Alexey Rodionov
|
| Posted: 02/22/2003, 7:40 AM |
|
Hello!
How to manage messages to user like that:
I have a form. Users complete it and submit. I`d like to show a
message on the next page of current state. At this moment I`m using
{Error} to pass messages. For example AfterExecuteInsert Event :
mail ($to, $subject, $message, $additional_headers);
form->Errors->addError("Done. Ok!");
On the next page user will see this message but the form is still
filled with data.
Is there any solution to manage not Errors but messages depending on
my own events? What is the good practice?
Thanks in advance.
|
|
|
 |
Christof Ressel
|
| Posted: 02/25/2003, 12:38 AM |
|
I would use Session Parameter(s) and redirect to another page that just
displays the values of it(them) ....
or even better write custom code to hide the record you first filled out
when the Session Parameter(s) is(are) set so you can call the same page
again!!!
something like:
AfterExecuteInsert
mail ($to, $subject, $message, $additional_headers);
CCSetSession("message","Done. Ok!");
and
Page BeforeShow
global $record;
$record->Visible=CCGetSession("message","")?False:True;
but don't forget to clear the Parameter(s) if you no longer need it(them)
|
|
|
 |
|