I suppose the namefirst variables come from some Query?

<cfloop index = "i" from = "1" to = "50">
<input type="text" class="txt" name="namefirst#i#" size="25"
     value="<cfoutput>#evaluate ('nameFirst' & i)#</cfoutput>" /><br />
</cfloop>

However, if the variables namefirst come from a form or some other structure, 
there might be a better way.
<cfloop index = "i" from = "1" to = "50">
<input type="text" class="txt" name="namefirst#i#" size="25"
     value="<cfoutput>#form['nameFirst' & i]#</cfoutput>" /><br />
</cfloop>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349589
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to