This form is search form. when I click the <option>
"alfamart" or "bca", I want the link change.
like this, link: /en2/maps(alfamart)or(bca)/ in accordance with the <option>
but how?
thanks
<form action="/en2/maps".$id."/"><!--Relative url to the page that your map is on-->
Distination:
<select name="textSearchTerms" class="selectpicker" data-live-search="true">
<option value="alfamart">Alfamart</option>
<option value="BCA">BCA</option>
</select>
<input type="submit" value="Search">
</form>
<?php
$id = $_GET['textSearchTerms'];
?>
You don't need to get value from URL, you can change form action by select box value.