Friday, February 15, 2013

PHP - URL Encode and Decode Query String

You can Encrypt the Query String value by using the below coding


$link = "http://www.example.com/?item=".urlencode(base64_encode("user-data"));
You can Decrypt the Query String value by using the below coding
urldecode(base64_decode($_REQUEST['item']));