如何在不使用'&'的情况下将2个PHP变量放在URL上

时间:2016-10-08 18:13:43

标签: php html

让我用一个例子来解释:

我有这个链接(php文件):http:// mywebsite.com/abc/?id=fasfsa&id2=derp

在Php上我有2个变量id和id2。

所以我使用另一个php文件发布链接,但他有其他变量而且它不考虑我的。

让我说明一下:

http://website.com/publish.php?url=http://mywebsite.com/abc/?id=fasfsa&id2=derp&linkname=blabla & image = http://google.com/g.jpg

这是publish.php的sintax。我无法编辑该文件。当我发布我的链接时,它只显示 http:// mywebsite.com/abc/?id=fasfsa

它不显示变量'id2'。谁知道方法?

它不显示变量id2,因为它只接受他的变量(url,linkname,image)。我想将所有链接放在变量url上。

0 个答案:

没有答案