Scope!

<cfparam name="form.call_letters_#i#" default="">

<input type="text" name="call_letters_#i#"
value="#form['call_letters_#i#']#" size="15">

Evaluate is an incredibly slow tag, try to avoid it if you can

> 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

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to