On 8/2/07, Anna P <[EMAIL PROTECTED]> wrote:
>
>
> [..snip..]
>
> Now, how can I name that submits as 'action'  (like in pure html
> <input type="submit" name="action" value="...">)  - I want both forms
> to use the same function 'account' in customers controller and there
> check if 'action'='save data' or if 'action'='save pass'... I tried to
> put the 'name'=>'action' before 'class'=>'submitbg' but either it
> didn't work or I didn't know how to retrieve it in controller. Help,
> please:)
> :-)


Hi Anna,

Not sure if this will work, but try this:

<?php echo $html->submitTag('Save pass',array('class'=>'submitbg', 'name' =>
'data[Customers][action]', value => 'save_pass' ) ) ?>

... then, in the controller, check for $this->data['Customers']['action'].
Let me know if this works.

- Gonzalo

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