$_GET = Array ([param1] => 10, [param2] => 20 ....... etc)
and covert that into,
$param1 = 10;
$param2 = 20;
...
...
etc.
I've got that working fine with this code,
Code: Select all
while ($value = current($_GET)) {
$term = key($_GET);
$value = mysql_prep($value);
$$term = $value;
next($get);
}
I want to let people omit a value in the forum but I get problems when say, param1 is passed through WITH NO VALUE, ie,
$_GET = Array ([param1] =>, [param2] => 20 ....... etc)
In this case the user hasn't filled in param1.
The code I've done seems to break down,
Any thoughts??? Suggestions on how to do this way efficiently are also greatly welcomed
Thanks,
Andrew