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&year=$_GET[year]\" $selected>" . date ("F", mktime(0,0,0,$i,1,$_GET['year'])) . "</option>\n";
}
?>
</select>
|
|