Ids are singular so you can not select an individual one by what you picked. There are many ways of doing it, one way is to pass the event and read the target.
function sayHelloWorld(event) {
var sel = event.target, //the select that was active
selIndex = sel.selectedIndex,
value = sel.options[selIndex].value;
console.log(selIndex, value);
}
<section>
<select id='myDropDown1' onchange='sayHelloWorld(event)'>
<option value='' disabled selected>CHOOSE ONE</option>
<option id='' value='cows'>COWS</option>
<option id='' value='pigs'>PIGS</option>
<option id='' value='chicks'>CHICKS</option>
</select>
</section>
<section>
<select id='myDropDown2' onchange='sayHelloWorld(event)'>
<option value='' disabled selected>CHOOSE ONE</option>
<option id='' value='cows'>COWS</option>
<option id='' value='pigs'>PIGS</option>
<option id='' value='chicks'>CHICKS</option>
</select>
</section>
You can pass the current object with this
function sayHelloWorld(sel) {
var selIndex = sel.selectedIndex,
value = sel.options[selIndex].value;
console.log(selIndex, value);
}
<section>
<select id='myDropDown1' onchange='sayHelloWorld(this)'>
<option value='' disabled selected>CHOOSE ONE</option>
<option id='' value='cows'>COWS</option>
<option id='' value='pigs'>PIGS</option>
<option id='' value='chicks'>CHICKS</option>
</select>
</section>
<section>
<select id='myDropDown2' onchange='sayHelloWorld(this)'>
<option value='' disabled selected>CHOOSE ONE</option>
<option id='' value='cows'>COWS</option>
<option id='' value='pigs'>PIGS</option>
<option id='' value='chicks'>CHICKS</option>
</select>
</section>
Or you can add events without the inline event handler
function sayHelloWorld() {
var sel = this,
selIndex = sel.selectedIndex,
value = sel.options[selIndex].value;
console.log(selIndex, value);
}
var sels = document.querySelectorAll('.selNav');
for (var i=0; i<sels.length;i++) {
sels[i].addEventListener("change", sayHelloWorld);
}
<section>
<select class="selNav" id='myDropDown1'>
<option value='' disabled selected>CHOOSE ONE</option>
<option id='' value='cows'>COWS</option>
<option id='' value='pigs'>PIGS</option>
<option id='' value='chicks'>CHICKS</option>
</select>
</section>
<section>
<select class="selNav" id='myDropDown2' >
<option value='' disabled selected>CHOOSE ONE</option>
<option id='' value='cows'>COWS</option>
<option id='' value='pigs'>PIGS</option>
<option id='' value='chicks'>CHICKS</option>
</select>
</section>
So than you would change the console.log lines to be
window.location.href = "externalPHPfile.php?w1=" + selIndex + "&w2=" + stuff;
or
window.location.href = "externalPHPfile.php?w1=" + encodeURIComponent(value) + "&w2=" + stuff;
That is assuming that stuff is valid in your code that you are not showing.