Re: Layout question form submit button
HI
I m trying this if two buttons are there
<script type="text/javascript">
$('#order_button_id').click(function(){
var form_action = '<?php print $this->Html-
>url(array('controller' => 'your_controller', 'action' =>
'your_order_action')); ?>';
$('#form_id').attr('action', form_action);
$('#form_id').submit();
return true;
});
hope this will work for u
andy
On Mar 17, 3:40 pm, heohni <heidi.anselstet...@consultingteam.de>
wrote:
> Hi,
>
> I want to have a button next to my submit button in order to go to
> action 'index' onclick.
> It should look like:
> [Save] [Go back to index]
>
> Do I have a chance to add another button with 'action'=>'index' next
> to the submit button?
--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home