Wednesday, June 24, 2009

Radio buttons in form w/ security component

Hi guys

Quick question. Any ideas why this:

$io = array('error' => false); // input options
$genders = array('m' => 'Male', 'f' => 'Female');

echo $form->input('gender', $io + array('type' => 'radio', 'options'
=> $genders, 'legend' => false, 'before' => 'Gender'));

should cause a form to blackhole? I'm using the form helper
throughout. Removing that field, and the form works.

I notice Cake is outputting <input type="hidden" name="data[_Member]
[gender]" value="" id="MemberGender_" /> automatically. Could this
have anythig to do with it? Either way, I can't prevent it.

Version is 1.2.3.8166

Cheers!
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: