Inserting checkbox values into one field

Discussion in 'ASP' started by ebosysindia, May 5, 2009.

  1. ebosysindia

    ebosysindia New Member

    Joined:
    May 5, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://www.ebosys.com
    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
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,376
    Likes Received:
    388
    Trophy Points:
    83
    You need to be using AJAX to insert them using the server side codes
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice