URL中有多组GET变量

时间:2014-06-06 23:22:10

标签: php html

所以我有一个Flash应用程序的iframe,它需要将src的GET参数作为动态生成的XML配置文件的链接。这是使用PHP生成的,并且还有一些变量也通过GET传递。

像这样:

        <embed id="thingID" src="Thing.swf?license=xxxx&config=generateConfig.php?layoutType=grid&nColumns=2&nRows=4&"
            width="100%" height="100%">
        </embed>

问题是这不起作用。 我认为“Thing.swf”正在捕获那些意图转到“generateConfig.php”的参数,但我无法找到如何将它们分开。

现在工作。需要urlencode("generateConfig.php?layoutType=grid&nColumns=2&nRows=4"); 谢谢!

1 个答案:

答案 0 :(得分:0)

您错过了结尾"

<embed id="thingID" src="Thing.swf?license=xxxx&config=generateConfig.php?layoutType=grid&nColumns=2&nRows=4&"
            width="100%" height="100%">
        </embed>

我还会选择删除额外的&