I do realize that the disabled field won't get posted, and I don't want it to - it's the automatically generated "Created" date, and I just wanted to show what that date is, and it's convenient to do so right on the form.
So if I were to use the 'readonly' option, the data appears on the form and posts with the form, but it's not editable in the form? That's an interesting option to have. Thanks for the info - very helpful. Frank On Feb 16, 4:04 pm, Me <[email protected]> wrote: > Note that using "disabled" has the additional consequence that the > "disabled" data you show won't POST through on the form, which may be > OK depending on your situation. If you don't expect it, you can have > phantom data loss.... > > If you want non-editable data but need it to POST, use array > ( 'readonly' => 'readonly'). You can use css to "gray it out" if you > want a disabled appearance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
