kiwistag
asked on
Variable Variables and $_POST
I've got a multitude of strings on a site with a numerical suffix and am trying to use a loop (and later when working a function).
What I'm stuck on is the formatting to parse the variable text into $_POST so I can read the value from the previous page.
What I'm stuck on is the formatting to parse the variable text into $_POST so I can read the value from the previous page.
$VVBLE = "Number$LoopNumber";
$$VVBLE = $POST['$VVBLE'];
As highlighted above the $_POST['$VVBLE'] is what I'm stuck on, what formatting should I use for it to use that as the lookup value?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, the issue was actually (that I'd missed completely) that I'd put $POST and not $_POST. No idea why I kept overlooking it but your code was great for fault finding!
$$VVBLE = $POST[$VVBLE];