On a more "personal style" note, I generally do a cfparam on all my form variables and then loop over the form structure and trim() all the values. I then do not have to check for existence or trim when checking length.
On Jan 21, 2008 2:32 PM, Charlie Griefer <[EMAIL PROTECTED]> wrote: > On Jan 21, 2008 11:18 AM, Sonny Savage <[EMAIL PROTECTED]> wrote: > > You really should use this: > > <cfif StructKeyExists(form, "grp_sort_" & myIDX) AND ( > Len(form["grp_sort_" > > & myIDX]) GT 0 )> > > if you're going to validate against the len(), you really should throw > a trim() in there for good measure :) > > > -- > "Scientists tell us that the fastest animal on earth, with a top speed > of 120 feet per second, is a cow that has been dropped out of a > helicopter." - Dave Barry > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297019 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

