Why?

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


you should try to stay away from using evaluate

this will get you the same thing:

<cfloop list="#form.fieldnames#" index="bob">
<cfoutput>#bob#: #form[bob]#<br/></cfoutput>
</cfloop>

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


Shizzel my nizzel! Thats got it. Thanks K.

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:27 AM
Subject: Re: [KCFusion] dynamically names vars


> here's an example of how i get the value to output...
>
> <cfloop list="#questionFieldNames#" index="stuff">
>   <cfoutput>#evaluate("form.#stuff#")#</cfoutput>
> </cfloop>
>
> kristi
>
> ----- Original Message -----
> From: "Adaryl "Bob" Wakefield" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 10, 2004 10:11 AM
> 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.
> ======================================================
>

=========================================================
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