How to Pass Special Characters via URL?

I want to pass some parameters with special characters via URL, but I don’t know how to do. For example: with the URL http://www.mysite.com/index.php?cat=you&me, $_GET[‘cat’] can only return “you”. How can I get the full parameter with “you&me”?

Try using the url_encode() function and url_decode() functions. These will replace all alphanumeric characters with the appropriate %… value:

http://us3.php.net/manual/en/function.urlencode.php