Categories > TinyButStrong general >

Echoing out Loop results in TBS

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Luke
Date: 2011-06-13
Time: 19:34

Echoing out Loop results in TBS

Hello.  I'm trying to echo out loop results for a form select field.

Can anyone show me how to convert this to tbs:

<select name="month" id="month" onChange="MM_jumpMenu('parent',this,0)">
            <?
            for ($i = 1; $i <= 12; $i++) {
                $link = $i+1;
                IF($_GET['month'] == $link){
                    $selected = "selected";
                } ELSE {
                    $selected = "";
                }
                echo "<option value=\"index2.php?month=$link&amp;year=$_GET[year]\" $selected>" . date ("F", mktime(0,0,0,$i,1,$_GET['year'])) . "</option>\n";
            }
            ?>
          </select>
By: Skrol29
Date: 2011-06-13
Time: 21:54

Re: Echoing out Loop results in TBS