Jump to content

Create a HTML select-option form in a tpl file using FEATURE VALUES


Recommended Posts

Hi there!!!!
I'm trying to make a html form and I want to display feature values in every option... I've made this 

<tr class="field-search field-search-2">
            <td class="label-search">LABEL</td>
            <td class="value-search"><select class="" name="profil" id="profil" style="color:#191919; font-size:14px;">
          <option value="">WIDTH{$model_ddl_default_text}{/if}</option>
          <option value="25">25</option>
          <option value="30">30</option>
          <option value="35">35</option>
          <option value="40">40</option>
          <option value="45">45</option>
          <option value="50">50</option>
          <option value="55">55</option>
          <option value="60">60</option>
          <option value="65">65</option>
          <option value="70">70</option>
          <option value="80">80</option>
    </select></td>
    </tr>

I want to display feature values in a {foreach} loop... like this 


    {foreach from=$feature_value}
           <option value="{$feature_value}">{$feature_vale}</option>
    {/foreach}

 

Can you please tell me how is that posible?? Do I have to create a function in a php file to generate the variable??
the code must be in a .tpl file!!!!!!

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...