I like to name my submit buttons (saveContact, vs. submit) to avoid that type of error, and to allow multiple submit buttons that do different stuff.
Probably have a field named submit in there, or something, perhaps? On 9/4/07, Will Tomlinson <[EMAIL PROTECTED]> wrote: > > CF8 - just buildin a simple cfform inside a div on a page. Nuthin special. > > So I do my usual routine of processing the form on the same page. > > > <cfif StructKeyExists(FORM, "submit")> > > process form > > </cfif> > > ok, so why would the form processing execute when the page loads? Cause > that's what it's doin, and it's freakin me out a little. > > I know I can switch to a regular form, but wanted to know how CF8 > structKeyExists() knows that form item is on the page, and executes my code. > > Thanks, > Will > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287753 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

