My 2 cents - not a MACR official position: Not using cfparam because it is slower than if(isdefined...) doesn't make much sense. If your application is at the level where it does matter, fine, but this won't account for more than 0.001% of the sites out there.
To me, this is like the argument against using: <cfif x is "foo"> as opposed to compareNoCase, which to me, makes the code much less readable. The only time I tell people not to use cfparam is when they using it like cfset. (Ie, they ALWAYS want it to set.) ======================================================================= Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 11:40 AM > To: CF-Talk > Subject: RE: IsDefined and Form["test"&var] question > > > > <cfparam name="form.question4" default="why did the chicken > > cross the road"> > > > > <cfloop from="1" to="10" index="i"> > > <cfoutput>#i#:</cfoutput> > > <cfif isDefined("form.question" & i)> > > <cfoutput>it exists<br>#form["question" & > > i]#<br></cfoutput> > > <cfelse> > > <cfoutput>no exist<br></cfoutput> > > </cfif> > > </cfloop> > > Seems funny that you're using the form[] to speed things up, but then > using <CFParam to slow it down again... > > Much quicker to make a UDF for CFParam and then <cfset > CFParam("form.question4", "why did the chicken cross the road")> > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

