Re: FormBuilder validation message -- issue / bug?
| From: | Markus Wolff | Date: | Mon, 07 Jun 2004 18:25:27 +0000 |
| Subject: | Re: FormBuilder validation message -- issue / bug? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12974@lists.php.net to get a copy of this message | ||
Sarah Gray wrote:
1. In my test page this is the validation script I have (w extra debug text that correctly prints out): if ($form->validate()) { echo "validated"; $form->process(array(&$fg,'processForm'), false ); $form->freeze(); $do->update(); } else { echo "not validated"; }Hi Sarah, if $do is the DataObject you're using to populate $fg, the additional $do->update() is not neccessary after processForm has been triggered, which already takes care of the update - well, I realize that is not your problem here, but I thought I'd mention it :-) Unfortunately, I don't see anything wrong with your code - it should work. Can you show me everything you do from creating the dataobject until reaching the validate part? CU Markus