Here's the magic you need:
#evaluate("form.material"&i)#
-----Original Message-----
From: Jen R [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 12:17 PM
To: CF-Talk
Subject: Dynamic Variable Names
....
In my database I have the fields "material1, material2, material3,
material4,....material20" and can build the first part of the insert
statement using a CFLOOP, but when I come to the Values() part of the
insert...how do I dynamically create that.
For example: The user wanted 5 lines for materials. On the form the user
fills out the boxes for material1, material2, material3, material4,
material5. How do I dynamically create the Values('#form.material1#',
'#form.material2#', '#form.material3#', '#form.material4#',
'#form.material5#')? I have tried the Evaluate function before and didn't
have too much luck.
Suggestions? It seems like the whole project hinges on this dynamic
variables problem.
Thank you...thank you....thank you!
---------------------------------
Do You Yahoo!?
Yahoo! Mail Personal Address - Get email at your own domain with Yahoo!
Mail.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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