There isn't really a "best" method, but if you're using GET then you should
always convert your special characters to URI safe characters using:
encodeURIComponent().

For sensitive data it's better to use POST.

On Thu, Jun 19, 2008 at 12:51 PM, Aaron <[EMAIL PROTECTED]> wrote:

> Hi, I use POST for send all data to a PHP scrip, for ex:
>
>     data:"script.php?id="+id+"&text="+text,
>
> but sometimes text contains \& or another istrange characters and not like
> to be correct send data in this way.
> ¿what is the best way? PHP -> JS I use json, but for JS->PHP?
>
>
> --
> Asterisk ext: 13502
> Asterisk server: null-lab.homelinux.org
> GPG Key ID 0x9ED66FA7
> Key Fingerprint: 3674 956F E2DF DC3B 694C 5281 6D57 5656 9ED6 6FA7




-- 
Isaak Malik
Web Developer

Reply via email to