BUT parsing php "variable variables" does not work
so this script works fine on my other WAMP stack and works fine on Linux servers, but does not work on Xampp:
- Code: Select all
$variables = array(
'itm_ord',
'itm_navttl'
);
ksort($variables);
ksort($_REQUEST);
foreach ($variables as $var) {
$$curvar= mysql_escape_string(trim($_REQUEST[$var]));
}
// variable should now hold value of REQUEST object
echo $itm_ord;
any ideas why it is not working?