URL Encode
This function is used to URL encode strings so they can be sent through a URL. This function also makes sure all the characters have been transformed into their entities.
function url_encode ($str) {
return htmlentities(urlencode($str));
}
?>