Hi. I loaded the variables from flash to php. The variables are loaded successfully, and I wanted to save the variables into a text file.
for($i=1;$i<=$newsnum;$i++) {
$$varvar = "newsarticle" . $i;
$new .= "&newsarticle" . $i . "=" . urlencode(${$varvar});
}
The variables goes like this ... &newsarticle1= ... &newsarticle2 ... the number of such variables depends on another loaded variable $newsnum. Therefore I would have to use a for loop to add in the variables and give a reference like flash: movieclip["var" + i]. I saw an article on php.net that states the use of "variable variable" but in this case the created variable $$varvar overwrites the previous variables loaded from the Flash.
So how do I solve this problem? 🙁