Location: PHPKode > projects > Yaoon Bulk SMS Gateway > yaoon-bulk-sms-gateway/vouchers_generate.php
<?
require_once('header.html');
require_once('lib/nusoap.php');

if (!$Username || !$Password || !$Number || !$Credits)
{
echo "<center><p>You have not entered all the required details.<br>";
echo "Please, <a href='vouchers_generate.html'>go back</a> and try again</center>";
exit;
}
$soapclient = new soapclient('http://sms.yakoon.com/vouchers.asmx?wsdl','wsdl');

$result = $soapclient->call('Generate',array('Username'=> $_GET['Username'],'Password'=>$_GET['Hash'],'Number'=> $_GET['Number'],'Credits'=> $_GET['Credits']));

print_r($result);
require_once('footer.html');
?>
Return current item: Yaoon Bulk SMS Gateway