Im currently using the code below to show the value of a database field. How can i make the radio buttons read only so the customers cant change it.

                <tr>
                    <td class="main"><?php echo ENTRY_ACCOUNT_TYPE; ?></td>
                    <td class="main"><?php echo tep_draw_radio_field('register', 'merchant', $merchant) . '&nbsp;&nbsp;' . MERCHANT . '&nbsp;&nbsp;' . tep_draw_radio_field('register', 'msp', $msp) . '&nbsp;&nbsp;' . MSP . '&nbsp;' . (tep_not_null(ENTRY_SIGNUP_TYPE_ERROR) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?></td>
                  </tr>

    Well, I believe the basic (X)HTML syntax would be:

    <input type="radio" name="group_name" value="the_value" checked="true" disabled="true" />

    EDIT: Woops, had the wrong attribute. Also, if you don't want the radio button to be selected, you'd obviously remove the checked="true" bit.

      A slight correction: I think the XHTML would be:

      ...checked="checked" disabled="disabled" />
        Write a Reply...