I got a html form which i loop like this:
for($i=0;$i<10;$i++){
echo '<input type="text" name="field'.$i.'">';
}
then i make and hidden input with a count var which says that there are 10 such input fields. but now i hav $field0 to $field9 and i do not know how i can get the input in a for loop again.
thanks for your help!
Use names like this in your input fields:
...'field['.$i.']'...This way in your $_POST these will show up in an array for you, and you can loop over them like: