you could even  use the aboce and add an "onClik" to redirect where
you want without submitting at all the form.

On Mar 15, 10:22 pm, Langdon Stevenson <[EMAIL PROTECTED]>
wrote:
> Hi Tuzi
>
> I have cancel buttons in my application that work the way that you want.
>     The html for the button is as follows:
>
>    <input type="submit" value="cancel" name="submit"/>
>    <input type="submit" value="save" name="submit"/>
>
> Then in my controller I test for the button using:
>
>    if($this->params['form']['submit'] == 'save') {
>      do some stuff ...
>    }
>
> Regards,
> Langdon
>
> Michael Tuzi wrote:
> > Is it possible to create a cancel button in a form that doesn't
> > require js using $html->submit? The submit button's value isn't
> > returned in the params array.
>
> --
> --
> Linden Row Pty Ltd
>
> NSW      : +61 2 8215 0570
> Victoria : +61 3 9013 9423
> Fax      : +61 2 8215 0571
>
> Mobile   : +61 416 118 037
>
> http://www.lindenrow.com.au
>
> ---------------------------
> Buy fine chocolate onlinehttp://www.chocolatereview.com.au


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to