2008年9月2日星期二

Re: [fw-mvc] Multiple submit

If you're using Zend_Form and Zend_Form_Element_Submit, you can use the isChecked() method of the Zend_Form_Element_Submit object.  Otherwise, if you're creating forms using solely view helpers or raw HTML, you'd check for the presence of the given submit button in the $_POST super-global (using $this->getRequest()->getPost() if you're using the MVC components) and confirm its value.

On Tue, Sep 2, 2008 at 1:33 PM, Viktor Zaionchkivskyi <v-z@ukr.net> wrote:
I have two submit-type buttons in my form. How can I distinguish on the serverside which one is pressed?

Please advise.

Regards
Viktor.

没有评论: