I am looking at a way to store a list of ids from a form.
What I have is a form in php that lists a group of devices that I need store in a table in a mysql database. This form is dynamic in length.
---- Sample Form ----
Device #1
Device #2 - SELECTED
Device #4
Device #5 - SELECTED
Device #6
Device #7 - SELECTED
Device #8 - SELECTED
---------------------
So I want to take 2, 5, 7, 8 and store it into a database so I can recall it later and make a report on the items selected in the form.
Would an array work in this situation? What type of solution would work for this?