That's exactly what I am doing. If they click Cancel I redirect back
to the referring page. McS

On Feb 13, 4:34 pm, thatsgreat2345 <thatsgreat2...@gmail.com> wrote:
> I understand why there might be applications in which you want to know
> what data was in the form when the user clicked cancel, but if you're
> canceling why are you submitting the form? Why not just link them back
> to the index or wherever they came from.
>
> On Feb 13, 12:02 pm, McScreech <scre...@sympatico.ca> wrote:
>
>
>
>
>
>
>
> > PHP 5.3.3, CakePHP 2.0.6
>
> > echo $this->Form->submit('Submit', array('div'=>false,
> > 'name'=>'Submit' ));
> > echo $this->Form->submit('Cancel', array('div'=>false,
> > 'name'=>'Cancel' ));
>
> > If I code multiple buttons on my form as above, how do I detect when
> > the Cancel button is pressed?
>
> > McS

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to