Categories > TinyButStrong general >

MergeBlock for select box

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Michael Frey
Date: 2011-10-14
Time: 16:12

MergeBlock for select box

I have the following html, which displays a select box with country names.
<select name="nationality" id="nationality">
  <option value="[blkcountries.val;block=option]">[blkcountries.val]</option>
  <option>[onshow.country;ope=html;select]</option>
</select>

The PHP code is as follows:
$country = 'Norway';
$countries = explode(';', file_get_contents('countries.txt'));
$TBS->MergeBlock('blkcountries',$countries);

Now the country names are loaded fine, but the selecting of the country: Norway, does not work.

I can not find the problem.

Thank you very much
Michael
By: Skrol29
Date: 2011-10-14
Time: 22:44

Re: MergeBlock for select box

What do you have instead of your expected result?

Did you load the HTML plug-in?
Are you sure item 'Norway' does exits in the "countries.txt" just exactly?
Did you tried using parameter "addmising" ?
By: Michael Frey
Date: 2011-10-23
Time: 19:45

Re: MergeBlock for select box

The problem was that I had not added the HTML plugin.

Now it works