Add a radio button to signup.html

Discussion in 'Customization & add-ons' started by jdieleman, Oct 27, 2006.

  1. jdieleman

    jdieleman New Member

    Joined:
    Oct 14, 2006
    Messages:
    4
    I have added a field for gender in the member database, but I want to hand code where it displays in the signup.html file, so I told it not to display on signup. I understand how to do a text field this way from another thread.

    <tr>
    <th><b>My Field</b><br />
    <div class="small">my field description</div></th>
    <td><input type="text" name="fieldname" value="{$smarty.request.fieldname|escape}" size="30" />
    </td>
    </tr>


    Could someone please help me with the code needed for a radio button used for gender?

    Thanks
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    PHP:
    <tr>
    <
    th><b>My Field</b><br />
    <
    div class="small">my field description</div></th>
    <
    td>
    <
    label for="male">
    <
    input type="radio" id="male" name="gender" value="1" {if $smarty.request.gender eq "1"}checked{/if} /> Male</label>
    <
    label for="female">
    <
    input type="radio" id="female" name="gender" value="2" {if $smarty.request.gender eq "2"}checked{/if} /> Female</label>
    </
    td>
    </
    tr

Share This Page