shawntbanks
Programmer
I need to create an orderstring to send to my payment processing company, fine if there is only one, but what if I have an array full of items and I have to create an orderstring for each one. The string has to follow this fromat
<input type="hidden" name="orderstring" value="ItemNum~ItemDesc~0.00~1~Y~||
ItemNum2~ItemDesc~0.00~1~Y~||
ItemNum3~ItemDesc~0.00~1~Y~||">
I have an array that contains more than one item but I don't know how to dynamicaly create the string.
MAYBE
<CFLOOP from="1" to="#ArrayLen(aryLocalArray)#" index="whichItem">
<cfoutput><input type="hidden" name="orderstring" value="#aryLocalArray[whichItem].orderid#~#aryLocalArray[whichItem].itemname#~#fees.price#~1~Y~||
>
</cfoutput>
</cfloop>
Any ideas!!
<input type="hidden" name="orderstring" value="ItemNum~ItemDesc~0.00~1~Y~||
ItemNum2~ItemDesc~0.00~1~Y~||
ItemNum3~ItemDesc~0.00~1~Y~||">
I have an array that contains more than one item but I don't know how to dynamicaly create the string.
MAYBE
<CFLOOP from="1" to="#ArrayLen(aryLocalArray)#" index="whichItem">
<cfoutput><input type="hidden" name="orderstring" value="#aryLocalArray[whichItem].orderid#~#aryLocalArray[whichItem].itemname#~#fees.price#~1~Y~||
>
</cfoutput>
</cfloop>
Any ideas!!