Link to home
Start Free TrialLog in
Avatar of jramos74
jramos74

asked on

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 ?


ASKER CERTIFIED SOLUTION
Avatar of mkishline
mkishline

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jramos74
jramos74

ASKER

Thanks, mkshline.  I got the formating part.n =)