In my form, I look up in my database all the fruits that are in basket A. It does this using a While statement, listing each fruit with a checkbox until there are no more fruits in basket A.
The person using the form then can select which fruits he wants and submit the form. I then need to read which ones he selected and, for each, insert a record in the person_to_fruit table.
How do I create an array of the selected fruits and then read that array when the form is submitted so that I can create a separate record for each fruit selected by this user?