我送參數鏈接到一個PHP頁面,如:腓獲取參數用&符號
http:// exemple.com/test.php?url=http:// i-want-to-get-this-link.com
在PHP頁面,我得到這樣的鏈接:
$ _GET ['網址「];
問題一段時間的鏈接有&符號:
http:// exemple.com/test.php?url=http:// i-want-to-get-this-link .com/?page1&desc/otherstaff
所以我只得到該鏈接的第一部分:http:// i-want-to-get-this-link.com/?page1
我怎麼能拿鏈接其餘&desc/otherstaff
你是否有控制設置'?url'? – Ghost
http://php.net/manual/en/function.urlencode.php嘗試尋找網址編碼。它應該有助於處理您的特殊字符問題。 –