the cfparam was just a quick add in, so that the form element existed for 
the test, but would still exist if a real form element were sent

At 04:40 PM 5/1/2002 +0100, you wrote:
> > <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")>
>
>Philip Arnold
>Technical Director
>Certified ColdFusion Developer
>ASP Multimedia Limited
>Switchboard: +44 (0)20 8680 8099
>Fax: +44 (0)20 8686 7911
>
>www.aspmedia.co.uk
>www.aspevents.net
>
>An ISO9001 registered company.
>
>**********************************************************************
>This email and any files transmitted with it are confidential and
>intended solely for the use of the individual or entity to whom they
>are addressed. If you have received this email in error please notify
>the system manager.
>**********************************************************************
>
>
>
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.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

Reply via email to