rendered paste body$select = '<select name="month" id="month" size="1" "selected='.$month.'">'."\r\n";
foreach($months2 as $key => $value){
$select .= "\t".'<option value="'.$value.'">' . $value.'</option>'."\r\n" ;
}
Try This... (Gazo2k)
$select = '<select name="month" id="month" size="1">'."\r\n";
$select .= "\t".'<option selected value="'.$month.'">'.$months2[$month].'</option>'."\r\n" ;
foreach($months2 as $key => $value){
$select .= "\t".'<option value="'.$value.'">'.$value.'</option>'."\r\n" ;
}
$select .= "</select>";