insert multiple checkbox results

Any tips and tricks that has to with the ADDT that doesn't fit into one of the other categories
mrhankey
Posts: 45
Joined: 2010-07-31 18:20

insert multiple checkbox results

Post by mrhankey » 2011-07-04 16:08

hi guys,

how can i tackle this with addt/interakt?

i need to store results of a survey which will have multiple checkboxes in a category for example:

Search engine category will have "yahoo, google etc"

these are able to be selected using checkboxes. just not sure how i should store this in the database or do the insert so i can then pull up info easily from it later?

thanks again

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: insert multiple checkbox results

Post by Fred » 2011-07-05 09:44

You could use the "comma-separated checkboxes" widget or the php function implode() to do it manually.

The thing to remember when doing it manually is to insert both the selected AND unselected vaules.

i.e. selected value would be "1" and unselected would be "0"

Post Reply