I’m not that good with PHP, so please forgive me.
I’m working in dreamweaver to create a data entry form.
I have a number of check boxes and I want to send their combined value to one field in my SQL database.
For example:
The Fist checkbox would have the checked value of 'Item 1'
The Second checkbox would have the checked value of 'Item 2'
The third checkbox 'Item 3' and so on.
When the form is submitted the value placed into the database would be 'Item 1 Item 2 Item 3' assuming all the boxes were ticked.
I have tried it with a simple form. I set the names of all the checkboxes to the same and submitted it to a php page which then displayed the URL Variable.
The second page only displays the value of the last checkbox in the form regardless of how many are checked.
I have read on google groups than putting [] at the end on each element name will combine the values however this only gives me 'array' which I just don’t know what to do with
Is it possible to combine the values of the checkboxes when processing the form?
Cheers
I’m working in dreamweaver to create a data entry form.
I have a number of check boxes and I want to send their combined value to one field in my SQL database.
For example:
The Fist checkbox would have the checked value of 'Item 1'
The Second checkbox would have the checked value of 'Item 2'
The third checkbox 'Item 3' and so on.
When the form is submitted the value placed into the database would be 'Item 1 Item 2 Item 3' assuming all the boxes were ticked.
I have tried it with a simple form. I set the names of all the checkboxes to the same and submitted it to a php page which then displayed the URL Variable.
The second page only displays the value of the last checkbox in the form regardless of how many are checked.
I have read on google groups than putting [] at the end on each element name will combine the values however this only gives me 'array' which I just don’t know what to do with
Is it possible to combine the values of the checkboxes when processing the form?
Cheers