I believe this may work, as I do somethink simular with parsing through
dynamic Form variables.
<td><input type="text" name="call_letters_#i#"
value="#evaluate("call_letters_" & i)#" size="15"></td>
Jason Lees
Development Team Leader
National Express.
-----Original Message-----
From: Bruce H. Beinert [mailto:[EMAIL PROTECTED]
Sent: 31 July 2003 08:52
To: CF-Talk
Subject: Auto generate form fields problem...
Hi,
I am trying to auto generate form fields and can't seem to get the last part
right. I want to set the value of the input box as the variable but can't
figure out how to do it... Obviously what happens is the value is set to
"call_letters_1" instead what I want which is #call_letters_1#
I have tried a bunch of different things none of which work and just throw
errors.
Any ideas??? Thanks!
<cfset i = 1>
<cfloop index="param" from="1" to="100">
<cfparam name="call_letters_#i#" default="">
<cfset i = i + 1>
</cfloop>
<table border="0" cellspacing="0" cellpadding="0">
<cfoutput>
<cfset i = 1>
<cfloop index="call" from="1" to="30">
<tr>
<td><strong>#i#.</strong></td>
<td><input type="text" name="call_letters_#i#" value="call_letters_#i#"
size="15"></td>
</tr>
<cfset i = i +1>
</cfloop>
</cfoutput>
</table>
--
Bruce H. Beinert
p.808-637-0727<>m.917-627-4035
Web Development and Consulting:
http://www.siliconmaui.com
Weblog:
http://www.bruceandwende.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4