Hi, for a long time I've used the following and it's always worked. I want to now convert this bit of code to be compliant with register_globals OFF. Can anyone shed some light?
Assume my URL string looks like this:
http://www.mysite.com?var=45
Working code looks like this (with register_globals ON):
$test = "var";
$output = $$test;
echo "The value is $output.";
Because I'm using $$test instead of $test, the output looks like this:
The value is 45. - RATHER THAN - The value is var.
THIS IS GOOD AND WHAT I WANT.
Now how do I adjust my code to bring the $_GET into the mix? I've tried it in several variations with no luck. Do I need totally different code?