Добрый день. Не силен в тонкостях, подскажите как передать id в action, когда ставлю ручками поиск работает:
<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>