So, I added a submit and a cancel button to my ajax form and it
doesn't matter which you press, it always returns the submit button,
not the cancel.

The view code has this at the bottom (I stopped using helpers to see
if raw HTML would help, it didn't):
    <input name="Submit" value="submit" type="submit">
    <input name="Cancel" value="cancel" type="submit">

In the controller (admin_edit) function, I'm dumping out the contents
of $this->params['form'] and it always shows

Array
(
    [Submit] => submit
)

Even if you press the cancel button.  Am I doing something wrong?

Thanks!

Nancy

--~--~---------~--~----~------------~-------~--~----~
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