Liam W
in memoriam 1998-2020
Is that possible?
Currently, you can do:
and then:
to get all of the set 'n' values.
What if the form is like this?
Doing
only gives the first value, how would I get them all?
Liam
Currently, you can do:
HTML:
<input type="xx" name="n[]">
<input type="xx" name="n[]">
<input type="xx" name="n[]">
and then:
PHP:
$data = $this->_input->filter(array(
'n' => array(XenForo_Input::STRING, 'array' => true)
));
to get all of the set 'n' values.
What if the form is like this?
HTML:
<input type="xx" name="n[data][]">
<input type="xx" name="n[data][]">
<input type="xx" name="n[data][]">
Doing
PHP:
$data = $this->_input->filter(array(
'n' => array(XenForo_Input::STRING, 'array' => true)
));
only gives the first value, how would I get them all?
Liam