Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Validation and multi-dimensional arrays
  • Hi, I need to build a form where some elements appear more than once, in a mutidimensional array. E.g.:
    $person[0][firstname]
    $person[1][firstname]
    $person[2][firstname] The size of the multi-dimensional array is determined by the user, i.e. it is not fixed. There could be 2 $person, or 20. How can I validate this array when the form is submitted? The fieldset/validation form builder seems to allow only normal (non-multi-dimensional) POST arrays. Thanks.
  • Hello, I know it's an old topic, but is there a "clean" solution to use validation with this kind of array ? Thanks.
  • Does anyone have an answer to this?
    Or did you find a solution? I'm having the same problem.
  • I am playing about with Modules and using Session::create() to store the _POST results. So far it seems to be ideal. I had to change from multi dimensional _SESSION arrays because of a remote host problem :(

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion