1

我有一个这样的网址

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

我需要获得test. 当我回显$_GET['test']它返回685286640293e700bc9440cafb587290?url=component/mycom/。url的最后一个变量正在发生这种情况。我不知道为什么会这样?谢谢

4

1 回答 1

4

Test不是在$_GET您显示的中发送吗?

您有 :insid=7并且它们之间token=685286640293e700bc9440cafb587290的格式不正确&,即 & 而不是 & 本身的 HTML 代码。

你现在的网址是这样的:

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

如果您将其更改为

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

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

于 2012-07-26T06:42:31.883 回答