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">  </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></c foutput>
<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 ?
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">  </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></c
<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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER