Forum Moderators: coopster
urlencode(http://somesite.com/directory/file.php?query=encoding needed);
will produce this:
http%3A%2F%2Fsomesite.com%2Fdirectory%2Ffile.php%3Fquery%3Dencoding+needed
...great if you wanted to send the url in a query string, but not for restoring an entire url.