Wednesday, September 2, 2009

Can select forms not return an array?

I am using a select field and even though I have it set to single selection only, it still saves its post data as an array.

I want : $this->data['User']['setting'] = 3

instead of : $this->data['User']['setting'][0] = 3

Is there something I need to do for this to be formatted correctly, or do I just need to loop though the post data and fix it? Thanks

~Michael

--~--~---------~--~----~------------~-------~--~----~
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: