PHP Classes

File: send.php

Recommend this page to a friend!
  Classes of Afilnet   PHP SMS Sending API   send.php   Download  
File: send.php
Role: Example script
Content type: text/plain
Description: Script to process the data collected form named form.html
Class: PHP SMS Sending API
Send simple SMS messages with the Afilnet API
Author: By
Last change: Script to process the data collected form named form.html
Date: 9 years ago
Size: 720 bytes
 

Contents

Class file image Download
<?php
   
include("../send-simple-sms.php");
   
   
$email = $_POST['email'];
   
$password = $_POST['password'];
   
$mobile = $_POST['mobile'];
   
$sender = $_POST['sender'];
   
$prefix = $_POST['prefix'];
   
$sms = $_POST['sms'];
   
   
$send = new SendSimpleSMS($email, $password, $mobile, $sender, $prefix, $sms);
   
$send->send();
   
$message = $send->getReturnMessage();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Send Simple SMS</title>
</head>

<body>
<p><?=$message?></p>
</body>
</html>