A form with 12 checkboxes, and an INPUT field associated with each, like --
form.elements  checkbox 1 form  input % associated with checkbox 1
form.elements  checkbox 2 form  input % associated with checkbox 2 ...up to 12 ckboxes
'The name called "ABC choice" has been assigned 40%' and
'The name called "BBC choice" has been assigned 60%.'
That is the goal of the PHP. Without a unique name for each checkbox, the input percents mean nothing.
But in PHP they say to NAME all checkboxes the same -- name="choice" -- square brackets puts them in an array, and the value is the name. This method has problems, if nothing is checked, PHP returns a visible error, which is unacceptable (No return to the page, it all gets emailed to me).
WHAT I WOULD LIKE TO DO IS -- keep my original plan of names, and find a way in PHP to easily loop through all the checkboxes and related % inputs, finding only the ones with value=1, and email those results and percents as above.
The logic of how best to handle these checkboxes in PHP and working PHP code is my main concern here.
Can anyone help withPHP code to do it? I've read most relevant links, so just ideas and code, please!