Reputation: 151
I passed email to my URL like that:
http://www.mysite.com?email=external%2Bcustomer%40gmail.com
however when print $_REQUEST
it gives me following output:
external^customer%40gmail.com /* console output */
I want output like that:
external%2Bcustomer%40gmail.com
please help me on this
Upvotes: 3
Views: 357
Reputation: 3192
If you want output exact as it is passed in URL, try this:
print_r(urlencode($_REQUEST['email']));
$_REQUEST
is automatically decoded, so you need to encode it again.
Upvotes: 4