Tuesday, November 24, 2009

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

When doing it like this:
array ('controller' => 'Accounts', 'action' => 'Manage', '?' => array
('var' => 'b73cr6xzr6z', 'var2' => 'somethingelse'))
then the result will be /Accounts/Manage/?
var=b73cr6xzr6z&var2=somethingelse

On Nov 24, 6:31 am, "Dr. Loboto" <drlob...@gmail.com> wrote:
> 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

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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: