On server:
Browser Url--->http://www.mysite.com/?email=external%2Buser%40gmail.com
Email passed in browser--->external%2Buser%40gmail.com
Email After Encode--->external%5Euser%40gmail.com /* using urlencode function */
Email After Decode--->external^user@gmail.com /* using urldecode function */
On Localhost:
Browser Url--->http://localhost/test.php?email=external%2Buser%40gmail.com
Email passed in browser--->external%2Buser%40gmail.com
Email After Encode--->external%2Buser%40gmail.com /* using urlencode function */
Email After Decode--->external+user@gmail.com /* using urldecode function */
In above code i don't know why server result is different than localhost. on server %2B(+)
is converted into %5E(^)
while urlencode
. I want same result as localhost. Please help me on this.