Variable and Text Concatenate Coldfusion

Need help with grabbing data and passing it to the next page.
I have the following code:

<div><input type="Checkbox" name="fruit" value="apple" > Apple</div>
<div>Price of Fruit:<input type="Text" name="apple_type" size="8">&nbsp;&nbsp</div>
<br>      
<div><input type="Checkbox" name="fruit" value="orange" > Orange</div>
<div>Price of Fruit:<input type="Text" name="orange_type" size="8></div>
<br>
<div><input type="Checkbox" name="fruit" value="banana" > Orange</div>
<div>price of Fruit:<input type="Text" name="banana_type" size="8></div>

For instance, if the user check checkkbox 1 [for apple] and enter 12.50 on the input box, and then put a check mark on Checkbox 3 [for banana] and enter 10.00 on the input box.

I can display easily the Apple and Banana values from <div> one by using the  loop below.  How can I display the associated price text boxes ?

<cfloop list="#fruit#" index="curItem">
    <cfoutput>#curItem#<br></cfoutput>
    <cfoutput> #curItem#_type <cfoutput>  <------  I know this code is wrong.  I need help on this part.
</cfloop>

How can I display the associated price text boxes ?


jramos74Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mkishlineCommented:
<cfoutput>#form[curItem & "_type"]#</cfoutput>

And you can wrap it in the DollarFormat function if you wish.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jramos74Author Commented:
Thanks, mkshline.  I got the formating part.n =)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.