php - submit form data from a foreach loop -
i have foreach loop form inside each result so:
foreach($this->results() $that) { <form> <input type="text" name="name[]"> <input type="text" name="this[]"> </form> }
and on. question how each forms data. understand can following:
$_post['name'][0]; $_post['name'][1];
etc, way done without knowng how many forms be. mean foreach loop $_post data , each form?
many thanks
foreach ($_post['name'] $val) { /* want, want want value */ }
$_post['name']
array. use count
or array function want on then.
Comments
Post a Comment