I'm trying to send multiple values in my drop down menu contained within a form. So basically, I want the form to return database for both Scotland and England when the user selects 'United Kingdom' in the drop down. I've tried the following (and some variations) but it's just returning values from Scotland
<div class="form-group">
<select class="form-control" name="nationality">
....
<option value="Scotland"|"England">United Kingdom</option>
<option value="United States" >United States</option>
<option value="Uruguay" >Uruguay</option>
<option value="Uzbekistan" >Uzbekistan</option>
...
I did look at this post - Can an Option in a Select tag carry multiple values?
But I couldn't get the number array to work - perhaps because I'm not passing an number through. And in the solution to this post - the second answer where an object is passed - I wasn't sure where to apply the JSON? Yup - I'm struggling with the basics here.
Adam
Hi all. Thanks for the comments. Just to update this post and explain things a bit more clearly.
I'm not trying to add information to the database - I'm trying to pull information from the database.
The application is a teacher search box. Users can search for teachers in an existing table under the parameter 'nationality'. Teachers already exist in the table and the UK teacher nationalities are set as Scotland, England, Wales, NI. I could change all of these in the database to UK however I wish them to remain as the UK forming nations.
I would like 'The UK' to appear in the search form drop down list and this would return all teachers from all UK countries.