Try the evaluate function on the form variable
<CFSET formfieldname = 'FORM.' & #myname#>
<CFSET formfieldvalue = evaluate("#formfieldname#")>
..
John Barleycorn wrote:
>
> hello,
> i have a list of dynamically created text boxes that are named with a string
> that holds the value of id|name|dataType. on the next page i extract the id,
> name and dataType of each item using cfloop on the FIELDNAMES list and
> getToken on each part of the list extracted by the loop. trouble is, i also
> need the value that the user entered into the text box. can anyone tell me
> how i would get this value?
>
> example:
>
> cfloop list="#FIELDNAMES#" delimiters="," index="ii"
> cfset myID = GetToken(ii, 1, "|")
> cfset myName = GetToken(ii, 2, "|")
> cfset authMode = GetToken(ii, 3, "|")
> cfset valueFromFormField = ???????
> /cfloop
>
> i've searched the archives for an answer to my question, but was unable to
> find one. Thanks for any help.
>
> newbie
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists