parameters help needed

2008-01-23 Thread bob
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

Re: parameters help needed

2008-01-23 Thread Claudia
The form submits to whatever you supply in the action attribute of the form tag. So simply include the parameters in the url of the action attribute. Claudia 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

Re: parameters help needed

2008-01-23 Thread majna
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

Re: parameters help needed

2008-01-23 Thread Dardo Sordi Bogado
$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