Re: QuickForm::addRule in groups
| From: | Wolfram Kriesing | Date: | Wed, 09 Apr 2003 16:10:57 +0000 |
| Subject: | Re: QuickForm::addRule in groups | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15066@lists.php.net to get a copy of this message | ||
Bertrand Mansion wrote:
the problem seems to be the name i am using: newData[comment] the data returned will be in an array, and since you read them like this: $this->_submitValues[$elementName] where $elementName='newData[comment]' it doesnt work :-( do you have a nice solution for that? -- Wolfram ... opensource @ vision:produktion ... http://opensource.visionp.de ... translating template engine .... http://sf.net/projects/simpletpl ... authentication system .... http://sf.net/projects/authBTW, use setDefaults() if your $data['comment'] value is supposed to be the default value of your textarea: $form->setDefaults(array('newData[comment]' => $newData['comment'])); There is no need to use setDefault if it's the submitted value as it is automatically retrieved. So just don't specify a value.