Are you positive about that? We worked on a project that had display:none and, from what I remember, those fields were not submitted.
This is easy enough for the OP to test, however. (CFDUMP and/or Firebug) Thanks, Mike -----Original Message----- From: Rick Root [mailto:[email protected]] Sent: Wednesday, February 11, 2009 10:12 AM To: cf-talk Subject: Re: Form vars when display set to none CFFormProtect uses this method of putting in a hidden form field and requiring that it be empty as part of it's anti-spamming tests. the CSS display none will NOT affect whether or not the field is submitted, it should always be there. Rick On Wed, Feb 11, 2009 at 10:55 AM, Adrian Lynch <[email protected]> wrote: > > Just for peace of mind, if I have a form field that has it's display > set to none... > > <cfdump var="#FORM#"> > > <form action="test.cfm" method="post"> > <input type="text" name="field-1" style="display: none;" /> > <input type="text" name="field-2" /> > <input type="submit" name="submit" value="Submit" /> </form> > > ... will it ever be the case that field-1 ISN'T sent in the post? > > The reason I ask is that I know some browsers don't send disabled form > fields and others do, just wondering if this is the same for display: none. > > Thanks. > > Adrian > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319182 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

