Strange characters in the values passed in the URL must be escaped using urlencode( ).
For example, the following part of the code:
echo urlencode('dsf13f3343f23/23=');
will provide you with:
dsf13f3343f23%2F23%3D
Which works great as a URL parameter.
And if you want to create an aquery chain with several parameters, look at http_build_query() .
For example:
echo http_build_query(array( 'id' => 'dsf13f3343f23/23=', 'a' => 'plop', 'b' => '$^@test', ));
will provide you with:
id=dsf13f3343f23%2F23%3D&a=plop&b=%24%5E%40test
This function relates to the shielding and concatenation of the parameters themselves :-)
Pascal martin
source share