Codex tools: Log in
string urlencode ( string $str )
This function is convenient when encoding a string to be used in a query part of a URL, as a convenient way to pass variables to the next page.
$str: The string to be encoded.
See more: http://php.net/urlencode