HI,
I have checkbox list to be generated dynamically.I can't see a way to collect the rows which are checked.The list varying .I am too dumb.
I HOPE I AM CLEAR ENOUGH.
thanks in advance
Parth
When you loop through the checkbox, just name them like an array ie name="checkbox[]" then when you receive them, you'll have an array with all the checked answers.
amc
Hi
How to retrieve the array value after submitting.I mean from the post method.
thanks in advance Parth
Example :
<? foreach($_POST["checkbox"] as $key => $value) { "The checkbox $value is checked<BR />\n"; }
This little code will print values of all the checked checkboxes. Of course, change "checkbox" in $_POST["checkbox"] to the name you decided.