Is javascript available in your country?

Mark

On Sun, Sep 20, 2009 at 3:36 AM, aoohralex <[email protected]> wrote:
>
> I have action:
>        public function addBookAction()
>        {
>                $form = new Form_Books();
>
>                 if ($this->getRequest()->isPost())
>                {
>                        $request = $this->getRequest();
>                        if ($form->isValid($request->getPost()))
>                        {
>                                .................
>                        }
>                }
>
>                $this->view->form = $form;
>        }
>
>
> And In form I have submit button:
>       $this->addElement('submit', 'submit', array(
>            'ignore'   => true,
>            'label'    => 'Submit',
>        ));
>
>
> How can I make Cancel button ? I think I can't make button cancel type
> 'submit' because after clicked this button it will be executed action
> addBookAction() and book will be added.
> --
> View this message in context: 
> http://www.nabble.com/how-can-I-create-Cancel-button---tp25528935p25528935.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>



-- 
Have fun or die trying - but try not to actually die.

Reply via email to