Page 1 of 1

insert multiple checkbox results

Posted: 2011-07-04 16:08
by mrhankey
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

Re: insert multiple checkbox results

Posted: 2011-07-05 09:44
by Fred
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"