how to give dynamic name for checkbox in php -


can tell me how give dynamic names checkboxes counters.i know possible javascript.but in php.please give me suggestions.

<?php for($i = 0; $i < 10; $i++){     echo '<input type="checkbox" name="foo[' . $i . ']" /> <br />'; } 

is want?

this example return array of values checkboxes. modify example needs.


Comments