How do I get the current selected value on my dropdown? And pass it on my php variable?
<select name="f_country_id">
<option value="0">-Select country-</option>
<option value="1">Brazil</option>
<option value="2">Canada</option>
<option value="3" selected>Denmark</option>
<option value="4">Philippines</option>
<option value="5">USA</option>
</select>
Then onChange i need also to get the new value selected. And output it on a page inside a php variable.
Do I need to reload the page and use the GET["f_country_id"]
as url variable to achieve it. Because I'll be using the id value for my search.
Please help and advise.