I have a form with a radio button on it. It is an edit user form.
I have a radio button for Application type. In the db, it is either 0 for trial or 1 for annual. When I got to edit user, I am trying to figure out how to have the correct radio buttons checked.
<tr>
<td class="label"><?php echo $ML_LABELS['app_type'];?></td>
<td>
<input type="radio" name="app_type" id="app_type" value="<?php echo readFromDB($user['app_type']);?>" size="50" /> Trial
<input type="radio" name="app_type" id="app_type" value="<?php echo readFromDB($user['app_type']);?>" size="50" /> Annual </td>
</tr>
I cant figure out how to do this. I tried if statement, but maybe i didnt do it right. Can someone please help me. Thank you