"Male", 'Female' => "Female"); foreach($options as $option => $label) { if ($option != $vars['value']) { $selected = ""; } else { $selected = "checked = \"checked\""; } echo "{$label}"; } ?>