Selecting values from radio field
Posted: Sun Jun 18, 2006 6:32 am
I'm trying to determine the value submitted in a radio field but having a few problems for some reason.
I'm using a radio field with 2 options - Yes and No. (Yep, I know I really should use a checkbox for this, but a lot of the people who will use the website may be extremely computer illiterate and so black and white 'Yes' or 'No' is easier for them to understand than a checkbox!!)
Anyways....
If I get the value of the radio field using $_REQUEST[$field_name], the value is ALWAYS 'Yes' whether I select 'Yes' or 'No' in the radio field.
Even in the html code, the value of each radio option is correct!
Perhaps there's some alternate way to get the values??
I'm using a radio field with 2 options - Yes and No. (Yep, I know I really should use a checkbox for this, but a lot of the people who will use the website may be extremely computer illiterate and so black and white 'Yes' or 'No' is easier for them to understand than a checkbox!!)
Anyways....
If I get the value of the radio field using $_REQUEST[$field_name], the value is ALWAYS 'Yes' whether I select 'Yes' or 'No' in the radio field.
Even in the html code, the value of each radio option is correct!
Perhaps there's some alternate way to get the values??