Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

zettz's avatar
Level 1

Save Bootstrap form helper selected country to database

Hi, I need to ask for help with bootstrap form help, the code come from here. Here's the code which I took and I change nothing at provided code

<div class="bfh-selectbox bfh-countries" data-country="US" data-flags="true">
  <input type="hidden" value="">
  <a class="bfh-selectbox-toggle" role="button" data-toggle="bfh-selectbox" href="#">
    <span class="bfh-selectbox-option input-medium" data-option=""></span>
    <b class="caret"></b>
  </a>
  <div class="bfh-selectbox-options">
    <input type="text" class="bfh-selectbox-filter">
    <div role="listbox">
    <ul role="option">
    </ul>
    </div>
  </div>
</div>

I try to save the selected value (long name) to database, but no luck, it keep result in short name. How can I save the long name? Thank you

0 likes
0 replies

Please or to participate in this conversation.