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
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>