Jibberish Posted May 7, 2009 Share Posted May 7, 2009 This is a ajax / php related question but I'm sure that the problem is somewhere in the php. I have an ajax request sending fields over to php, some of the fields have apostrophes in which are getting sent fine, i.e when i look at the params in firebug the field looks fine. however when doing a dump of the request there is a backslash before the apostrophe. sent field = "Q'FIX 100MM TERM" value in $_REQUEST = "Q\'FIX 100MM TERM" I have tried escaping the apostrophes with %27 but it has the same result. Does anyone know what else could be causing this? Link to comment https://forums.phpfreaks.com/topic/157219-solved-php-adding-backslashes-before-apostrophe-in-urls/ Share on other sites More sharing options...
revraz Posted May 7, 2009 Share Posted May 7, 2009 Do you have magic quotes enabled in your php.ini ? Link to comment https://forums.phpfreaks.com/topic/157219-solved-php-adding-backslashes-before-apostrophe-in-urls/#findComment-828433 Share on other sites More sharing options...
Jibberish Posted May 7, 2009 Author Share Posted May 7, 2009 Yes this was the problem thanks, changed it now so that it's turned off. I see that this feature has been deprecated now as well. Link to comment https://forums.phpfreaks.com/topic/157219-solved-php-adding-backslashes-before-apostrophe-in-urls/#findComment-828444 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.