You'll need to name it in the form Model/Property:
$html->submit('Go', array('name'=>'Data/action'));
Then on the controller you can do:
$this->data['Data']['action']
-MI
---------------------------------------------------------------------------
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de redhex
Enviado el: MiƩrcoles, 07 de Febrero de 2007 02:11 a.m.
Para: Cake PHP
Asunto: Re: Help with Submit button
I think all you need is to define the name attribute of the button.
$html->submit('Go',array('name'=>'action'))
In your controller, the value of $this->data['action'] should be 'go'
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---