Saturday, January 3, 2009

Re: Radio button value null after post, but appears in post headers upon inspection

That looks like an unusual array dump to me.

Multiple radio button fields with the same name should result in a
single variable being passed back to the controller. Can you even
build an array with multiple instances of the same key->value pairing
as shown above?

My guess would be that IF you have managed to get the above array
passed to the controller that last instance of data[EdibleUndy]
[underwear_type_id] would be the one read and that doesn't have a
value.

Can you show us the HTML code for the form including the radio buttons
and the hidden field you mention, and also could you supply the PHP
you are using to create the form?
--~--~---------~--~----~------------~-------~--~----~
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: