}
$endpoints = new ServiceEndpoints();
if (!isset($submit)) {
    $senderAddress = "tel:+123456789";
    $address0 = "tel:+13500000991";
    $address1 = "tel:+13500000992";
    $message = "Hello World!";
    $clientCorrelator = "123456";
    $notifyURL = "http://application.example.com/notifications/DeliveryInfoNotification";
    $senderName = "ACME Inc.";
    $callbackData = "Callback-data-goes-here";
    $username = "******";
    $password = "******";
    $endpoint = $endpoints->getSendSMSEndpoint();
} else {
    $endpoints->setSendSMSEndpoint($endpoint);
    $sender = new SMSSend($endpoints, $username, $password);
    $address = array();
    $address[0] = $address0;
    $address[1] = $address1;
    $address[2] = $address2;
    $address[3] = $address3;
    $address[4] = $address4;
    $smsResponse = $sender->sendSMS($senderAddress, $address, $message, $clientCorrelator, $notifyURL, $senderName, $callbackData);
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>    
    <title>
      GSM World | OneAPI Toolkit
    </title>