For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > June 2004 > Re: [PEAR] FormBuilder validation message -- issue / bug?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] FormBuilder validation message -- issue / bug?
Markus Wolff

2004-06-07, 3:59 pm

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com