I am submitting a form that has checkboxes that are dynamically generated from a database.
Each Checkbox must have a unique name (ie. name="Red"; name="Blue") for associated javascript to work. Javascript requires a unique name for each.
ex> http://www.medidirect.ca/dev/example.html
For this reason can't use an array of checkboxes (ie. name="Color[]") for the list of checkboxes.
Upon Submit, I need to determine which Checkboxes were submitted then deposit checked items into my database.
(ie. if(isset($Blue)) )
- the problem is that since this form is dynamically generated - I can't hardcode the list of variables to test for.
I have to generate a list of all vars to test for.
And this is where I am stuck. How can I create a list of vars to test for in the formaction script?
thanks,
Mark, Canada