Hi,
I have a series of checkboxes dynamically generated and it could be just one or two or 100 depending on the user ... it's like this:
<input type=checkbox name=c1[] value=ABC>
<input type=checkbox name=c1[] value=DEF>
<input type=checkbox name=c1[] value=GHI>
I thought giving them all the same name would be the easiest as I know other languages will just output the variable = ABC,DEF if you pick the first two for example. However, PHP doesn't seem to be doing this as easy as I thought. I've tried naming them all c1[] or just plain c1 and neither seems to work.
How can I output in PHP just what has been checked? I need to do a database call where the "WHERE" clause only gets those checked (ie SELECT * FROM TABLE WHERE ID In(ABC,DEF))
Thanks,
Andrew