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 <cont...@adrianlynch.co.uk> 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:319172 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4