07-20-2011, 05:44 PM
[eluser]Unknown[/eluser]
I am trying to set a radio button as selected from the database but it isn't working.
This is the code I am using:
I have verified that $application_data['volunteer_applied_c'] does contain the value of "Yes". What am I missing?
I am trying to set a radio button as selected from the database but it isn't working.
This is the code I am using:
Code:
<input type="radio" name="volunteer_applied_c" value="Yes" <?php echo set_radio('volunteer_applied_c', 'Yes', $application_data['volunteer_applied_c'] == 'Yes'); ?>>Yes
I have verified that $application_data['volunteer_applied_c'] does contain the value of "Yes". What am I missing?