All pastes #881266 Raw Edit

Untitled

public text v1 · immutable
#881266 ·published 2008-01-29 22:39 UTC
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>";