This is in there because Cake's forms can support the additional methods such as PUT and DELETE that are needed for RESTful applications, but that aren't supported by browsers as yet. Originally the input field was not inside a fieldset, however that (according to the W3C validator, amongst others) is not valid XHTML Strict.
I requested this change so I could validate my forms correctly. But because including a fieldset, even one that contains only a hidden input, adds additional spacing to the form, I suggested display: none to get around it. Rather than add an extra line to the stylesheet, and risk confusing people, I believe an inline style is the correct way to do this. So, the inline style is a web standards issue - but it comes down on the right side of the fence - it's there to make complying with the standards possible. On Sep 13, 9:21 pm, Action <[EMAIL PROTECTED]> wrote: > Form helper inserts the following code in every form: > > <fieldset style="display:none;"><input type="hidden" name="_method" > value="POST" /></fieldset> > > Is there any way to remove the fieldset tag or the inline style? I'd > rather have the entire form inside a single fieldset instead of having > an invisible input field inside its own fieldset. Also, the inline > style is a web standards issue. > > How can I fix this? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---