You have to call $request->isValid($formData) in order for getValue() to work with the posted data.
On Thu, Jul 9, 2009 at 7:40 AM, magrytos1<[email protected]> wrote: > > Hi. I have a problem with my form. In my simple ZF project i have 2 actions: > request and critere. Each one have a form class. In form request i have one > select and one submit button. After selecting a request, the submit button > send us to Form critere. The problem is, that when i'm in form critere i > can't recive my valu that i choose in my select in form request. I already > tried this: > > $request = new Form_Request(); > $request->getValue('selReq'); //'selReq' is the name of my select. > > When I do something like this when I'm in critere: > > $formData = $this->getRequest()->getPost(); > print_r($formData); > > i have: Array ( [selReq] => 2 [crit] => go to critere ) > > so i have my value, but i can'tget it by function getValue(). My question is > WHY ??? > > thx > -- > View this message in context: > http://www.nabble.com/Problem-with-Zend-Form-tp24409414p24409414.html > Sent from the Zend Framework mailing list archive at Nabble.com. > >
