Cool, Thanks, That's handy! Did not know get_magic_quotes_gpc()! Best, Hannes
On 26 Feb., 09:43, Lennart <[email protected]> wrote: > You want something like this: > > if (get_magic_quotes_gpc()) { > > $_GET["json"] = stripslashes($_GET["json"]); > > } > > so your script does not depend on the magic quotes setting. > > LP > > On Feb 24, 9:32 am, Sanford Whiteman <[email protected]> > wrote: > > > > In fact the mistake was on the PHP. I solved it by strip the slashed > > > first to have a proper PHP array. > > > $json1 = json_decode(stripslashes($_GET["json"])); > > > Someone please correct me if using the wrong path. > > > Yes, it stands to reason that if you are using magic quotes (which are > > deprecated), you will need to adjust any data transport format which > > is specifically designed to include quotation marks. > > > --Sandy
