asked on
<?php
/*** Mandatory data ***/
// Post URL
$postURL = "http://mywebsite.com";
// The Secret key
$secretKey = "57f4354356gfhf54";
/*** Optional Data ***/
//$firstname = "John";
//$lastname = "Doe";
//$email = "john.doe@gmail.com";
// prepare the data
$data = array ();
$data['secret_key'] = $secretKey;
$data['slm_action'] = 'slm_check';
$data ['license_key'] = '5435436547frgfd';
// send data to post URL
$ch = curl_init ($postURL);
curl_setopt ($ch, CURLOPT_POST, true);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
$returnValue = curl_exec ($ch);
// Process the return values
print_r($returnValue);
?>