Welcome Guest, Not a member yet? Register   Sign In
set_radio() pre-populate problems
#1

[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:
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?


Messages In This Thread
set_radio() pre-populate problems - by El Forum - 07-20-2011, 05:44 PM
set_radio() pre-populate problems - by El Forum - 07-20-2011, 07:56 PM
set_radio() pre-populate problems - by El Forum - 07-21-2011, 10:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB