On Mar 11, 9:54 am, Stephen <[email protected]> wrote: > Hi > > I want to set an input box to be readonly, this is to prevent users from > editing the field, the data needs to be posted so disabled is not an option. > > I know I can do this with Javascript, but I am wondering how come there > doesn't seem to be a readonly parameter?
what's the difference between read-only and hidden? Or what's the difference between showing the user a disabled input and submitting a hidden input. However: Why are you sending a field to the user which they can't edit (instead of storing whatever the value is in the session, for example,) but are apparently wanting to use the value of - It sounds like you're about to make a big mistake: trusting user input instead of simply not including it in the form. AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
