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
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.