Give each button a 'name' (e.g. 'add', 'delete' and 'update'). Then in your 
controller function:

if (isset($this->params['form'])):
        if (isset($this->params['form']['add'])):
                ...do something...
        elseif (isset($this->params['form']['delete'])):
                ...do something...
        elseif (isset($this->params['form']['update'])):
                ...do something...
        endif;
endif;

Having said that, I wouldn't use buttons. I'd use links in the 
/controller/action/parameter manner so that everything happens just as Cake 
expects it. Standards and conventions.

Jeremy Burns
jeremybu...@me.com


On 18 May 2010, at 13:43, Master Ram wrote:

> hi..  am an new to cakePHP,
> 
> i have 3 buttons in one form. with different funtion.
> 1. add
> 2. delete
> 3. upadt
> 
> how to use these buttons in one form.
> 
> i used "isset" but not working
> 
> please give any sample code.
> 
> thank u
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to