php parameter with apostrophes

后端 未结 2 1464
不知归路
不知归路 2021-01-28 17:51

I have string parameter with apostrophes that I need to pass it to another php page. My code is:

echo \'
2条回答
  •  余生分开走
    2021-01-28 18:26

    What's happening is that the URL parser is breaking on the single quotes. Check out the URLEncode method, to encode your query string parameters.

    http://us3.php.net/urlencode

提交回复
热议问题