Yeah, i have the code for the select menu, that pulls the values out, and displays them. But what I need is for it to pull them all out, when 'Yes' is selected. And then insert all the values. I could do...
if ($value == "yes") {
//do this
}
if ($value == "no") {
//do this
}
however however the code for "no" is very long, and it would be almost identical for "yes". It consists of lots of if statements, and updates currents records, if they exist, and checks for certain stuff, it would be pointless to duplicate it. Much easier to simply assign the $value a different value before inserting/updating/checking with it.
If there was someway so $value could contain all the values assigned to that userid, and then insert then as separate records it would be much easier.
i.e.
no = 'no'
insert 'no' into table
yes = 'a'
'b'
'c'
insert 'a' into table
insert 'b' into table
insert 'c' into table
Cheers
Brian