CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 send messages to user depending on server|other event

Print topic Send  topic

Author Message
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)


   


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.