$valor){ global $$var; $$var = $valor; } } if($_GET){ foreach($_GET as $var=>$valor){ global $$var; $$var = $valor; } } } register_globals_on(); ?>