How can I enabled readonly for this field?
I would use $form->input helper function
I try to set echo $form->input('name',array('readonly'=>true)); but it
doesn't work

On Feb 13, 4:30 pm, Marcelo Andrade <[email protected]> wrote:
> On Fri, Feb 13, 2009 at 11:28 AM, [email protected]
>
> <[email protected]> wrote:
>
> > Hi
> > I have a form.
> > Inside this form I have a field disabled but with a value.
> > When I post form but in the form there are errors when the form is
> > reloaded qith the errors the disabled field is empty.
> > How can I correct this?
>
> Disabled form fields are not submitted.
>
> I suggest you turn this field enabled but readonly
> (and additionally, add a css style to make it looks
> like disabled).
>
> Best regards,
>
> --
> MARCELO DE F. ANDRADE (aka "eleKtron")
> Belem, PA, Amazonia, Brazil
> Linux User #221105
>
> [...@pará ~]# linkshttp://pa.slackwarebrasil.org/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to