Categories > TinyButStrong general >

Just another stupid question...

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Jorge
Date: 2004-03-03
Time: 15:38

Just another stupid question...

Hi,

Sometimes you need a select box to display loop values like
Year (from 1980, to 2000)
or chose Age (select box with option values set from 18 to 99 years old)

Is there a simple TBS method to display it without complicated HTML.

Hope I'm clear..
By: Skrol29
Date: 2004-03-03
Time: 15:57

Re: Just another stupid question...

Yes you can do simply merging with a NUM type:

PHP:
$TBS->MergeBlock('b_years','num',array('min'->1980,'max'->2000));

HTML:
<select><option>[b_years.val;block=option]</option></select>