PDA

View Full Version : Inserting checkbox values into one field


ebosysindia
05-14-2009, 01:59 PM
hi

I have a checkboxes on my page (.aspx) like

checkbox1 - item1
checkbox2 - item2
checkbox3 - item3
etc

what i want is that when a user selects certain checkboxes
they should be inserted into a table called
customer which has fields (customer id and actions)

the data should be inserted as

customerid actions
1 item1,item2,item3
2 item1,item3
3 etc..

i.e all the values should be inserted into database into one field separated by commas.

Thanks

Brandoe85
05-18-2009, 05:59 PM
I highly recommend you don't store store comma separated data in your database. Look into normalization to properly store it. As for your issue- what have you gotten so far and where are you stuck?

ebosysindia
06-08-2009, 08:13 AM
I highly recommend you don't store store comma separated data in your database. Look into normalization to properly store it. As for your issue- what have you gotten so far and where are you stuck?

Thanks for suggestion.:)

stevepeterson
07-20-2009, 06:12 PM
You need to be using AJAX to insert them using the server side codes