Database: Multiple checked records in a separate table

Sorry to be a pain, i really feel i should know this but i just don’t seem to be able to get it to work

I have a server connect form which dynamically produces around 60 check boxes name: fid[].
On submission this runs a server connect action which loops through the elements in the collection sent (fid[]).
Each element has a unique value set relating to a specific checkbox.
My server action successfully loops through the elements and inserts an entry into a table for each checkbox sent i.e. if six boxes are checked, 6 records are inserted.

However my problem is how do i reference the value of each checkbox in the collection to insert that value into one of the table fields within a server connect query ?

($_POST.fid produces an error “Array to string conversion” and no records are created)

Can be seen at https://findmystudentdigs.co.uk/multicheckboxtester.php

Community Page
Last updated: