PHP - Plus sign with GET query

后端 未结 6 1507
余生分开走
余生分开走 2020-11-27 20:49

I have a PHP script that does basic encryption of a string through the method below:



        
6条回答
  •  孤独总比滥情好
    2020-11-27 21:29

    You should be using urlencode() before putting the encrypted string on the query string, which will "escape" any special characters (including +) and then call urldecode() before decrypting it, to revert them back to their original form.

提交回复
热议问题