Re: DB_DataObject_FormBuilder - result of processForm() from postProcessForm()
| From: | Doug Kearns | Date: | Sat, 10 Jul 2004 20:14:47 +0000 |
| Subject: | Re: DB_DataObject_FormBuilder - result of processForm() from postProcessForm() | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13616@lists.php.net to get a copy of this message | ||
On Sat, Jul 10, 2004 at 12:51:53PM -0700, Justin Patrin wrote:
> Sounds like it might be a good idea, but why exactly do you need this?
I want to know if processForm() has succeeded before sending out success
notifications. ;-)
> If processForm is called, then it means that the form was submitted
> and passed the validation, meaning that the data should have been
> committed to the DB.
What if $validateOnProcess is set to true, for example?
> If you want to know what changed, you'll have to check yourself
> anyway.
Sure, but a simple status flag is really good enough for many purposes.
Regards,
Doug