This may be what will help

<cfloop collection="#form#"  item="element">
        <cfif left(element,3) eq "Chk">
                
                <cfset checkboxList = StructFind(form,"#element#")> <!--- reads value 
of key "element" --->

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Adaryl "Bob" Wakefield
Sent: Tuesday, February 10, 2004 10:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] dynamically names vars


See thats where I was going. I had
<cfset questionFieldNames = ListDeleteAt(form.fieldNames,
listFindNoCase(form.fieldNames,"submit2"))>

  <cfloop list="#questionFieldNames#" index="stuff">
  <cfoutput>#stuff#</cfoutput>
  </cfloop>
But that of course only gets me the field name. Am I on the right track? Do
you have a code example?

Adaryl "Did you reboot?" Wakefield
Aviator by passion
Programmer by sheer force of will
----- Original Message -----
From: "Kristi J. Bohling" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 10, 2004 10:10 AM
Subject: Re: [KCFusion] dynamically names vars


> sometimes i use the form.formfields variable and loop through the list of
> form fields to populate queries.  kristi
>
> ----- Original Message -----
> From: Bob
> To: [EMAIL PROTECTED]
> Sent: Tuesday, February 10, 2004 10:00 AM
> Subject: [KCFusion] dynamically names vars
>
>
> I think i need an extra brain on this.
> I have a form which can be seen at www.keys.org/modules/quiz.cfm
>
> Obviously the names of each set of answers have to be unique. The problem
is
> that the number of questions is not constant so when I go to access these
> values in the action page i can't just say form.question1 form.question2
> etc. I was trying to figure out some way to dynamically reference the
field
> values but that does not look like its going to work. Anybody got a better
> idea?
>
> Adaryl "Did you reboot?" Wakefield
> Aviator by passion
> Programmer by sheer force of will
>
>
>
> =========================================================
> Kansas City ColdFusion User Group's website & listserv is
> hosted through the generous support of Clickdoug.com
> To send email to the list, email  [EMAIL PROTECTED]
> To subscribe or unsubscribe, send an email to [EMAIL PROTECTED] with your
request.
> For hosting solutions http://www.clickdoug.com
> Featuring Win2003 Enterprise, RedHat Linux, CFMX 6.1.
> ======================================================
>
 
=========================================================
Kansas City ColdFusion User Group's website & listserv is 
hosted through the generous support of Clickdoug.com
To send email to the list, email  [EMAIL PROTECTED]
To subscribe or unsubscribe, send an email to [EMAIL PROTECTED] with your request.
For hosting solutions http://www.clickdoug.com
Featuring Win2003 Enterprise, RedHat Linux, CFMX 6.1. 
======================================================

========================================================Kansas City ColdFusion User 
Group's website & listserv is
hosted through the generous support of Clickdoug.com
To send email to the list, email  [EMAIL PROTECTED]
To subscribe or unsubscribe, send an email to [EMAIL PROTECTED] with your request.
For hosting solutions http://www.clickdoug.com
Featuring Win2003 Enterprise, RedHat Linux, CFMX 6.1.
=====================================================

Reply via email to