In my form I have checkbox and select menu. Checkbox comes first in form. I would like to:
1) if checkbox is not checked and nothing is selected to give error message that user must choose something
2)if checkbox is checked and something is selected to store only checkbox value in DB
3)if something is selected in the menu to store that value in DB - this is not problem, just to avoid questions like what do I need select menu for
I know that IF should be used, just don't know how.
Thanks in advance.