You have to set up some arrays to traverse to recreate the selectbox or radio buttons or other multiple choice items in a form
$mySelectVals = array('bill'=>'Billable','charge'=>'Chargeable','admin'=>'Administrative');
$selectBox = '<select name="cat">
foreach ($mySelectVals as $key=>$val) {
$selectBox .= '<option value="' . $key . '"';
if ($key == $cat) {
$selectBox .= ' selected';
}
$selectBox .= '>' . $val;
}
$selectBox .= '</select>';
echo $selectBox;