$_GET值与URL不同的原因


why $_GET value is different than URL

我有一个类似的url

http://example.com/folder/component/mycom/?insid=7&test=685286640293e700bc9440cafb587290

我需要得到test的值。当我回显$_GET['test']时,它返回685286640293e700bc9440cafb587290?url=component/mycom/。这发生在url的最后一个变量上。我不知道为什么会这样?感谢

Test没有在您显示的$_GET中发送?

您有:insid=7token=685286640293e700bc9440cafb587290,它们之间有一个格式错误的&,这是&而不是&它本身

您当前的URL是:

http://example.com/folder/component/mycom/?insid=7&test=685286640293e700bc9440cafb587290

如果您将其更改为

http://example.com/folder/component/mycom/?insid=7&test=685286640293e700bc9440cafb587290

我敢打赌你会让你的代码工作:)