using select tag with IF statement

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

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

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?

Sponsor our Newsletter | Privacy Policy | Terms of Service