Hi everyone:)
I'm a begginer and got stuck with this:
Let's say I have controller 'customers' and it has an 'account' view,
in which user can set a new password or edit it's current name &
address data. So in that view I got two forms:

editing profile:
<?php echo $html->formTag('/customers/account',null,
array('id'=>'reg'));?>
......................input tags...........................
<?php echo $html->submitTag('Save data',array('class'=>'submitbg'))?>

changing password:
<?php echo $html->formTag('/customers/account',null,
array('id'=>'reg'));?>
......................input tags...........................
<?php echo $html->submitTag('Save pass',array('class'=>'submitbg'))?>

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:)
:-)


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