how can I use dynamic GET variables?
Hi CF people,
I created the following GET String with Javascript:
Code:
verarbeite.cfm?anzahl=5&id_3=12&menge_3=25&id_5=2&menge_5=100
this is how I did it:
Code:
Pseudocode:
var sendStr='?anzahl='+anzahl;
for(i=1 to anzahl)
{
if(mengeID>0){
sendStr=sendStr+'&id_'+i+'='+ID+'&menge_'+i+'='+mengeID;
}
}
req4.open('get', 'verarbeite.cfm'+sendStr);
now I want to access with my "verarbeite.cfm" the single menge variables
Code:
<cfif IsDefined("anzahl")>
<cfloop
index = "loopCount"
from = "1"
to = #anzahl#
step = "1">
#menge_&loopCount#
</cfloop>
</cfif>
but how can I call menge_3, menge_5???
how do I get the connection beetween menge_ and loopCount??
Thanks
JollyRoger