Jump to content

[SOLVED] php adding backslashes before apostrophe in urls


Jibberish

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.