Possible Duplicate:
PHP 5.3 automatically escapes $_GET/$_POST from form strings?
I have a problem that I cannot fix. I have search functionality on my website that passes variables. Some of the url variables may have apostrophes in them. For example:
http://xyz.php?var=that's
My problem is that when the variables are passes it adds a \ to escape the apostrophe. Then when i click a paging button it will escape the escape adding \. Is there a way to stop the escaping of the url. It works fine with it returns the apostrophe or only escapes once.
http://xyz.php?var=that's or http://xyz.php?var=that\'s
but when i paginate it escapes the escape and
> http://xyz.php?var=that\\\'s
when it escape the escape adding multiple slashes it breaks my search or returns no results.
Does any one know of the php function to stop this from escaping the escape or not escaping the url at all. Thank you.