using select tag with IF statement


#1

Can i ask for any suggestion on how to count how many times a value is selected using a select option tag? and insert it into database the number of selection an option has. For Example

<select name==‘country’>

if (option 1 == ‘africa’)
count how many times this is selected and insert it to database
elseif (option 2 == ‘uk’)

          count how many times this is selected and insert it to database

#2

What do you mean with how many times it’s selected?


#3

You can only select 1 option. On a multi-select, you can select multiple options, but each one can only be selected once.

How about, what are you trying to do rather than how you are trying to get there?