Monday, November 23, 2009

Re: Setting form action to something like /Accounts/Manage/?var=b73cr6xzr6z&var2=somethingelse

You can set form action as:
array ('controller' => 'Accounts', 'action' => 'Manage', '?' => array
('var' => 'b73cr6xzr6z', 'var2' => 'somethingelse'))

On Nov 23, 9:22 pm, Ragnis <ragnis.ar...@gmail.com> wrote:
> I need them as GET variables.
> My form is at /Accounts/Manage/?var=b73cr6xzr6z&var2=somethingelse and
> when i submit the form, the GET variables will be gone but i want them
> to stay.
>
> On Nov 22, 11:39 pm, Amit <a...@amitvaria.com> wrote:
>
>
>
> > Is there a reason you can't just include the vars in the form?
>
> > $form->input('var', array('type'=>'hidden', 'value'=> 'b73cr6xzr6z'));
>
> > On Nov 22, 12:54 pm, Ragnis <ragnis.ar...@gmail.com> wrote:
>
> > > So how can i do that?
> > > And i don't want to use /Accounts/Manage/var:b73cr6xzr6z/
> > > var2:somethingelse

--

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
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?hl=en.

No comments: