通过php头重定向传递GET字符串中接收到的变量


Passing variables received in GET string through a php header redirect?

我尝试通过重定向传递变量,它在另一边出现空。有人知道是什么问题吗?我试着在这里搜索解决方案,但没有找到:

header("Location: https://photorankr.com/instagram_fancybox/index.php?code=".$token."&id=".$userid);
在我的另一个文件中,我得到这样的变量:
$codedown = htmlentities($_GET['code']);

url中不显示任何内容,也不回显任何内容

尝试在同一页面中打印令牌和用户id。你上面写的代码是正确的,并尝试在其他页面上获得变量$_REQUEST['code']和$_REQUEST['id']