Byłbym bardzo wdzięczny za pomoc bo zależy mi na tym skrypcie
<script> function setAction(){ var i, url = []; var form = document.getElementById('myForm'); var selects = form.getElementsByTagName('select'); var j = selects.length; for(i=0; i<j; i++){ url.push(selects[i].options[selects[i].selectedIndex].value); } form.setAttribute('action',url.join('-') + '.xm'); } </script> <form id="myForm" action="TUTAJ_ZMIANA_TARGETA"> <select name="country" style="width: 110px"> <select name="province" style="width: 110px"> <select name="category" style="width: 110px"> <input type="submit" value="Subskrybuj" onclick="setAction()" style="width: 110px"> </form>