Good day. Not strong in the intricacies, tell me how to pass the id in action, when I put the pens search works:
<form method="post" action="index.php?page=search&locationid=" id="base-search-hotels-form" autocomplete="off"> <input type="hidden" name="locationid" id="base-search-hotels-form-locationid" value="{if isset($currentLocation)}{$currentLocation[0]["id"]}{/if}"/> <input type="text" class="form-control" id="base-search-location" placeholder="Направление" value="{if isset($currentLocation)}{$currentLocation[0]["locationname"]}{/if}" /><br> <input type="text" class="form-control" name="roomscount" id="base-search-roomscount" value="" placeholder="Спальных мест" /> <label for="dateto" id="label-br">Дата заезда</label> <input type="date" class="form-control" id="dateto" name="dateto" /> <label for="datefrom" id="label-br">Дата выезда</label> <input type="date" class="form-control" id="datefrom" name="datefrom" /> </form> <button type="button" class="btn btn-primary btn-lg" id="base-searchbtn" value="{$currentLocation[0]["id"]}"> Найти </button>