I'm having trouble getting the FormHelper radio method to function properly. Since the documentation is pretty sparse for radio elements, I'm hoping to find more help here in the forums.
I'm trying to create a radio group which specifies a customer's preferred method of communication. I've been using the following: echo $form->radio('origin_primary', array('origin_email' => ' '), array('fieldset' => 'false', 'title' => 'Primary Contact Method')); --snip-- echo $form->radio('origin_primary', array('origin_phone' => ' '), array('fieldset' => 'false', 'title' => 'Primary Contact Method')); --snip-- echo $form->radio('origin_primary', array('origin_fax' => ' '), array('fieldset' => 'false', 'title' => 'Primary Contact Method')); What I'm expecting this to do is set the 'origin_primary' value to either the email, phone, or fax and then when the form is submitted it will save it to the DB. What this ends up outputting is this: <input type="hidden" name="data[Order][origin_primary]" id="OrderOriginPrimary_" value="" /> <input type="radio" name="data[Order][origin_primary]" id="OrderOriginPrimaryEmail" fieldset="false" title="Primary Contact Method" value="origin_email" /> <input type="hidden" name="data[Order][origin_primary]" id="OrderOriginPrimary_" value="" /><input type="radio" name="data [Order][origin_primary]" id="OrderOriginPrimaryPhone" fieldset="false" title="Primary Contact Method" value="origin_phone" /> <input type="hidden" name="data[Order][origin_primary]" id="OrderOriginPrimary_" value="" /><input type="radio" name="data [Order][origin_primary]" id="OrderOriginPrimaryFax" fieldset="false" title="Primary Contact Method" value="origin_fax" /> However, it doesn't seem to work. When I submit the form, $data ['Order']['origin_primary'] is null. What am I doing wrong? Thanks, Seth --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---