BackendDeveloper adlı üyeden alıntı

Kodun tamamini paylaşırsanız bakalım

if(isset($_POST['gonder'])) {
$url = "https://qwetqeq.net/api/3/sms.php"; //Url address for sending SMS
$phone = '+9053862677xx'; // Phone number
$msg =$adi. "". $tarih. "". $ozelnot;
$_POST['tarih']; // Message
$device = '163496'; // Device code
$token = '2a827c16ff022b6cd62f2eb67f05ada6'; // Your token (secret)
$adi=$_POST['adi'];
$tarih=$_POST['tarih'];
$ozelnot=$_POST['ozelnot'];

$data = array(
"phone" => $phone,
"msg" => $msg,
"device" => $device,
"token" => $token
);

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
$output = curl_exec($curl);
curl_close($curl);

echo $output;
}
?>