while (list ($key, $val) = each ($_GET)) { $$key = $val; } while (list ($key, $val) = each ($_POST)) { $$key = $val; }