Hi folks, my first post on this board, but hopefully not my last!
I'm building a Flash-based app at the moment, and have run into a bit of a problem with the PHP scripting. It's probably a no-brainer, but I'm tired, and a fresh mind on the case might sort the problem quicker!
I'm setting a variable dynamically, and then assigning it a value. The problem comes when I try to extract this value; how do I get hold of it?
When I code echo $$varName, I get absolutely nothing back in Flash, but if I change this to $varName, I get the variable's name (i.e. categories2)
Does anyone have an idea of what trick I'm missing?
Here's my code:
$varName = "categories" . $i;
$$varName = $_POST[$$varName];
$rsp = $$varName;
Your help would be grately appreciated, as it's getting late here in England!
Jodie