denoteone Posted September 12, 2010 Share Posted September 12, 2010 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 Link to comment https://forums.phpfreaks.com/topic/213191-sending-variable-using-curl-when-echoed-shows-extra-slash/ Share on other sites More sharing options...
denoteone Posted September 12, 2010 Author Share Posted September 12, 2010 got it curl_setopt($ch, CURLOPT_POSTFIELDS,"name='. $name .'&email='. $email .'&serial=". $serialnumber ); Link to comment https://forums.phpfreaks.com/topic/213191-sending-variable-using-curl-when-echoed-shows-extra-slash/#findComment-1110116 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.