> $posted=str_replace("\\"","\"",$__POST['varaible_2'];
It is a little off-topic here, but the back-slashes are added or not
depending of PHP's configuration.
Here is the bullet-proof way to manage parameters in PHP:
$posted = $__POST['varaible_2'];
if (get_magic_quotes_gpc())
{
$posted = stripslashes($posted);
}
HTH,
Eric
On Oct 17, 8:12 pm, "Alex McAuley" <
webmas...@thecarmarketplace.com>
wrote:
> it sends a json object to the server which you remove the slashes and
> decode -
>
> example in php
>
> $posted=str_replace("\\"","\"",$__POST['varaible_2'];
>
> $json=json_decode($posted);
>
> // $json is now a multi dimensional array you can access
>
> Alex Mcauleyhttp://
www.thevacancymarket.com