I am wanting to pull down a group of variables from a URL using $_GET.
I have no problem posting my variables with:
<?php echo "select name=\"cal_" . $myrow[foodid] . "\">"; ?>
resulting in:
http://url??cal_1=2&cal_2=0&cal_3=0...
So then I need to get the variables back out. Instead of:
$a=$_GET['cal_1'];
$b=$_GET['cal_2'];...
I want to:
${'a' . myrow[foodid]} = $_GET['cal' . myrow[foodid]};
There my be about 50 of these variables passed throught the URL, and thus i want to GET dynamic variables instead of going line-by-line.
Any suggestions?