I am using the PHP urlencode() function to escape chars for anchor tags (). Why can't I use the function on a full URL such as
http://www.allposters.com/gallery.asp?startat=/getthumb.asp&txtSearch= ...
The function converts this string to
http%3A%2F%2Fwww.allposters.com%2Fgallery.asp%3Fstartat%3D%2Fgetthumb.asp%26txtSearch
which does not work when clicking on...
Trying to escape the QUERY only
startat%3D%2Fgetthumb.asp%26txtSearch
breaks the link also.
So my question is which characters should I esacape using the urlencode() function?
Thanks,
Joel