Jump to content

Curl not sending all the data


senyo

Recommended Posts

Her is the code, 

 

 

$email=$emailadress;
$subject =$sub;


$message = $rezult;


if(isset($_POST['subject']))     $subject   = $_POST['subject'];
if(isset($_POST['email']))   $email   = $_POST['email'];
if(isset($_POST['message']))   $message= htmlentities($_POST['message']);

$Curl_Session = curl_init('mail.php');
curl_setopt ($Curl_Session, CURLOPT_POST, 1);
curl_setopt ($Curl_Session, CURLOPT_POSTFIELDS,"subject=$subject&email=$email&message=$message");
curl_setopt ($Curl_Session, CURLOPT_FOLLOWLOCATION, 1);
curl_exec ($Curl_Session);
curl_close ($Curl_Session);

 

I always format the text, using this so all the text that is in the $message has the same format, using echo it shows the right text, but it doesn't send all the text only a couple of words that are in different places

$rezult=mb_convert_encoding($data,"HTML-ENTITIES","utf-8");

 

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.