Give the button a name (let's use 'process'  as an example):

echo $this->Form->submit(
        'Order',
        array('name' => 'process')
);


echo $this->Form->submit(
        'Submit',
        array('name' => 'process')
);

...and then check for it:

if ($this->data && isset($this->params['form']['process'])):

        $response = strtolower($this->params['form']['process']);
        if ($process == 'order'):
                //do something
        else:
                //do something else
        endif;



Jeremy Burns
Class Outfit

[email protected]
http://www.classoutfit.com

On 18 Feb 2011, at 07:26, andy_the ultimate baker wrote:

> hi,
> i m working on one form.
> 
> in that form i have two submit button. one is for SUBMIT and another
> is ORDER.
> 
> i want to redirect my form to ORDER view if user clicks on ORDER. but
> i m not getting how.
> 
> my code is in simple HTML not in Cake HTML
> 
> is as fallows
> 
> tr>
>                      <td width="15%"><input type="submit"
> name="Submit22" value="Submit" id="submit"/>                      </
> td>
>                      <td width="1%">&nbsp;</td>
>                      <td width="84%"><input type="submit"
> name="Submit" value="Chemo Order" onclik id="chemoorder"/></td>
>                    </tr>
> 
> plase help
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
> 
> 
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to