I have a page with 4 forms; a primary form (Exercise) and 3 forms for the different media types (Audio, Image, Video). Each form has uses a different action but when I submit the primary form it seems to submit the other forms as well.
The names of the submit buttons are different and calling isChecked() on the submit elements doesn't seem to help. Here's the primary action (the action view helper is used to render the 3 other forms in the exercise/edit view script): http://www.paste2.org/p/80391 Here's one of the secondary actions: http://www.paste2.org/p/80394 Here are the forms: http://www.paste2.org/p/80397 And here is the Exception Information: Message: "" not found by file transfer adapter Stack trace: #0 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/File/Transfer/Adapter/Abstract.php(563): Zend_File_Transfer_Adapter_Abstract->_getFiles('audio') #1 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/Form/Element/File.php(310): Zend_File_Transfer_Adapter_Abstract->isValid('audio') #2 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/Form.php(1985): Zend_Form_Element_File->isValid(NULL, Array) #3 /home/mlurz/Clients/physioview.com/physioview-ng/application/modules/therapist/controllers/AudioController.php(46): Zend_Form->isValid(Array) #4 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/Controller/Action.php(494): Therapist_AudioController->addAction() #5 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('addAction') #6 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/View/Helper/Action.php(131): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #7 [internal function]: Zend_View_Helper_Action->action('add', 'audio', 'therapist', Array) #8 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/View/Abstract.php(318): call_user_func_array(Array, Array) #9 [internal function]: Zend_View_Abstract->__call('action', Array) #10 /home/mlurz/Clients/physioview.com/physioview-ng/application/modules/therapist/views/scripts/exercise/edit.phtml(13): Zend_View->action('add', 'audio', 'therapist', Array) #11 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/View.php(107): include('/home/mlurz/Cli...') #12 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/View/Abstract.php(787): Zend_View->_run('/home/mlurz/Cli...') #13 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/Controller/Action/Helper/ViewRenderer.php(902): Zend_View_Abstract->render('exercise/edit.p...') #14 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/Controller/Action/Helper/ViewRenderer.php(923): Zend_Controller_Action_Helper_ViewRenderer->renderScript('exercise/edit.p...', NULL) #15 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/Controller/Action/Helper/ViewRenderer.php(962): Zend_Controller_Action_Helper_ViewRenderer->render() #16 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/Controller/Action/HelperBroker.php(166): Zend_Controller_Action_Helper_ViewRenderer->postDispatch() #17 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/Controller/Action.php(504): Zend_Controller_Action_HelperBroker->notifyPostDispatch() #18 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('editAction') #19 /home/mlurz/Clients/physioview.com/physioview-ng/library/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #20 /home/mlurz/Clients/physioview.com/physioview-ng/public/index.php(16): Zend_Controller_Front->dispatch() #21 {main} In the meantime I intend just to link to the other 3 forms but eventually I need to be able to process any of the 4 forms from the same page. What is the best practice for handling such scenarios? -- View this message in context: http://www.nabble.com/Multiple-Form-handling-tp19742272p19742272.html Sent from the Zend Framework mailing list archive at Nabble.com.
