Hi Frank.. You're have to pass a multidimensional array then. Just loop over your original array, and change every array key into the user[fieldname] format. Then it works.
Daniel On Feb 4, 11:19 am, Frank He <[email protected]> wrote: > Yes thanks. > But only a little problems here. > The passed array is > $user = $this->getRequestParameter("users"); > As I set the name of form field to be user[]... > but when I use http_build_query($user), it convert the array into > self_gender=1&search_gender=0&country_code=CA... > I can no longer access it by $user = $this->getRequestParameter("users"); > > Any solution? > > On Wed, Feb 4, 2009 at 2:12 PM, Tom Haskins-Vaughan < > > [email protected]> wrote: > > > Is this what you mean: > > >http://us2.php.net/manual/en/function.http-build-query.php > > > xhe wrote: > > > I just forgot and can not find it. > > > I want to convert a long PHP array into post string, I remember a > > > function exist that can easily convert array to post string so that I > > > can pass to the next page. I need this in the paginator. > > > > Thanks > > > -- > > Tom Haskins-Vaughan > > Temple Street Media: Design and Development for the Web > > [email protected] |www.templestreetmedia.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
