Jump to content

sending variable using cURL when echoed shows extra slash


denoteone

Recommended Posts

when I send a post variable to another page for processing using cURL and then I echo the variable I am getting extra slashes and periods

 

this is where I set the fields to send.

 

curl_setopt($ch, CURLOPT_POSTFIELDS,"name='. $name  .'&email='.  $email .'&serial='.  $serialnumber .'");

 

this is what happens when I echo $serial on the processing page.

\'. SLNM7IV6ZM98YJRXO8D5 .\'

 

it should look like

SLNM7IV6ZM98YJRXO8D5

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.