'coldfusion: display form value using variable

Coming from a form page, I have the following value: test1, test2, test3 .. test50.

To display 1 of them, I can do this

<output> #form.test1# </output>

But I want to display all of them using a loop, how would I do it?

<cfloop index="i" from="1" to="#form.build_found#" >
    <output> #form.testi# </output>
</cfloop>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source