Try Evaluate.
I've done this: I'm sure there's more elegant ways, but it worked...
<cfloop index="stuff" from="1" to="#listlen(Form.Fieldnames)#">
<cfset a=#ListGetAt(Form.FieldNames, stuff)#>
<cfif not(a is '')>
<cfset b=#Evaluate(a)#>
<cfloop index="smallstuff" from= "1" to="#listlen(b)#">
etc.
Susan Hamilton Allen
Web Programmer
Pfingsten Publishing, L.L.C.
Rock Run Center, Ste. 280
5700 Lombardo Center Dr.
Seven Hills, OH 44131
phone: 216.328.8926
fax: 216.328.9452
-----Original Message-----
From: Ewok [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 2:23 PM
To: CF-Talk
Subject: Re: Dyanmic Form Names huh?
yeah i could use a multi select but this form is so pretty : )
----- Original Message -----
From: "Ewok" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, August 27, 2002 2:04 PM
Subject: Dyanmic Form Names huh?
> Ok, so I have a database full of sections in the admin section
>
> section1
> section2
> section3
> section4
>
> no problem looping over them to create a dynamic form
>
> <cfloop query="getsections" datasource="#request.maindsn#" dbtype="ODBC">
>
> <cfoutput>
>
> #getsections.sectionname#
>
> <select name="#sectionname# size="1">
> <option value="yes"> YES </option>
> <option value="no"> NO </option>
> </select>
>
> </cfoutput>
>
> </cfloop>
>
> so I have a form that sorta resembles my artwork below.....
> ___________
> Section 1 |___YES___|/\|
> ____________
> Section 2 |____NO___|/\|
> ___________
> Section 3 |____YES___|/\|
> ____________
> Section 3 |____NO___|/\|
>
> hehe those are drop down selects......no really they are!
>
> ok so the form is simple enough
>
> now when i process the template (send it to act_process.cfm)
>
> I want to make a list of all the selections that were YES
>
> ............. section1,section3 from my beautiful example ; )
>
> but i cant say
>
> <cfif form.#section1# IS "yes">
> listappend(blahblahblah
> </cfif>
>
> in a loop
>
> HOW CAN I GET THESE FORM NAMES THEIR VALUES AND !!!! *cough* sorry i
yelled
>
>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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