You need to urlencode and urldecode the values

On Monday, April 16, 2012, Isaac Kimotho wrote:

I have tried to send data in php with a Plus (+) sign. When i send the data using a $_post it replaces Plus(+) with a space how can i make this work

sample script

$url = "http://www.samplesite.ke/receive.php";
                     $account=123;
$values="this is blood group B+  with rhesus factor";
$ch = curl_init();
                            curl_setopt($ch, CURLOPT_USERAGENT, $account);
                            curl_setopt($ch, CURLOPT_URL,$url);
                            curl_setopt($ch, CURLOPT_POST, 1);
                            curl_setopt($ch, CURLOPT_POSTFIELDS,"account=". $account."&val=".$values. ");
                            $result= curl_exec ($ch);
                            curl_close ($ch);
                   
     
the result recieved is

this is blood group B      with rhesus factor