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