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 <[email protected]> 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
