[PHP] Problems passing variables from Javascript to PHP

2003-06-17 Thread Daniel
Hello =) I'm embedding an SQL query constructed in Javascript to an URL and opening it in PHP where I try to execute it. Problem is, the string arrives garbled, with all the apostrophes escaped. This must be Javascript's type of safe url encoding, but how would I go about decoding it in PHP? I

Re: [PHP] Problems passing variables from Javascript to PHP

2003-06-17 Thread David Otton
On Tue, 17 Jun 2003 17:00:26 +0200, you wrote: I'm embedding an SQL query constructed in Javascript to an URL and opening it in PHP where I try to execute it. I can't believe anyone hasn't jumped on this yet :) Please be very, very careful. There's a big big hole there. Problem is, the string

Re: [PHP] Problems passing variables from Javascript to PHP

2003-06-17 Thread Daniel
They're escaped with backslashes. Weird thing is, I did make a Javascript functions that converts every character to Unicode hex values preceded by %, but for some magical reason, when I use rawurldecode on the string, the apostrophes are still escaped! At the moment, this is beyond my grasp, but