Hi, I have a section where when joining the customer must select if they are male or female. As its a male orientated site, i want the male default button to be selected as default, but i dont know how to do this... can anyone tell me what i need to do with this code ? Code: <td class="infoBoxContents"><?php echo tep_draw_radio_field('gender', 'm') . ' ' . MALE . ' ' . tep_draw_radio_field('gender', 'f') . ' ' . FEMALE . ' ' . (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>': ''); ?></td> to make the MALE radio button checked by default thanks heaps !
Hi, Since you use function to render the inputs you should look into the tep_draw_radio_field() php function to see if it has third aruments specifying the checked state. Thanks
...or if it doesn't have support for 3rd argument to hardcode it it there and leave it mega undocumented so that the next guy will need to justify what's being paid for