Monday, January 31, 2011

redirecting post data from a form

Hello all,

I have a flow in which I have a general form (Form 1), which accepts
different types of inputs (each of which is handled by a different
controller). So when I get information from the form regarding the
type of input, I would like to redirect to the corresponding
controller (ControllerA). Form 1 also contains other information in
the POST variable.

I would like to know how I can redirect to the corresponding
controller, along with the POST variables. The redirect function
unfortunately does not allow to include POST variables ($this->data),
and I am not interested in sending the data as named parameters or
GET.

I tried applying the solution at
http://stackoverflow.com/questions/1871592/how-to-make-cakephp-redirect-to-a-different-action-controller
(using the dispatch function), but the view does not render properly.

How could I solve this problem?

Cheers,
ojonam

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

No comments: