我的问题是关于header()函数的。我尝试通过这个函数发送两个变量,如下所示:
header("Location:index.php?variable_1='true'&variable_2='false'");
我认为这是转义&的问题,但我只是尝试了用&. Also, first variable gets initialized and I can acquire it by calling$_GET‘’variable_1‘`,但是第二个是不存在的,也没有初始化。
所以我的问题是,我可以通过GET方法通过header()函数发送多个值吗?
谢谢您抽时间见我!
发布于 2013-01-18 15:22:23
是的,你可以这样做,以防万一
header("Location: index.php?variable_1=true&variable_2=false");你不需要使用'‘this
发布于 2013-01-18 15:22:38
试试这个:
header("Location:index.php?variable_1=true&variable_2=false");https://stackoverflow.com/questions/14394087
复制相似问题