SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2001
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Radio Button - Default

    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

    PHP Code:
    <td class="infoBoxContents"><?php echo tep_draw_radio_field('gender''m') . '&nbsp;&nbsp;' MALE '&nbsp;&nbsp;' tep_draw_radio_field('gender''f') . '&nbsp;&nbsp;' FEMALE '&nbsp;' . (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 !
    signature

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    We can't tell you without the definition of the tep_draw_radio_field function. If it supports specifying that the radio field is checked, which it probably does, it's probably one of the arguments. Look in the file that defines tep_draw_radio_field, or the function reference of the software you're using that provides that function.

    It's not a built-in PHP function.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •