$url = array('controller' => 'things', 'action' => 'add', $param1, $param2); echo $form->create('MyModel', array( 'url' => $url ));
On Jan 23, 2008 6:47 AM, majna <[EMAIL PROTECTED]> wrote: > > controller: > $this.>set(''param1', $param1); > $this.>set(''param2', $param2); > > view: > <form action="/controller/action/$param1/$param2" .... > > > > On Jan 23, 9:09 am, bob <[EMAIL PROTECTED]> wrote: > > > if i have the url as follows > > localhost/controller/action/param1/param2 > > > > and i also have a form and a submit button and i am doing a POST. > > > > If i press the submit button, the url becomes localhost/controller/ > > action/ (without the param1 and param2) > > > > How do i keep the parameters intact after the form submit? > > > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---