Hi I am trying to convert this snippet of code which is a drop down that pulls the values from a mysql database. I would like to create a loop and display these items as radio buttons. I've tried a few different ways without the greatest results. Any help would be greatly appreciated. Thanks.
<select name="doc_type">
<?
print_option($doc_type, '', 'All Doc Types');
foreach ($kb_page_info['doc_type']['valid_values'] as $valid_doc_type) {
print_option($doc_type, $valid_doc_type, $valid_doc_type);
}
?>
</select>