PHP Classes

File: sample/index.php

Recommend this page to a friend!
  Classes of Juraj Puchký   PHP SMS Queue System   sample/index.php   Download  
File: sample/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP SMS Queue System
Queue and process delivery of SMS with Gammu
Author: By
Last change: Update of sample/index.php
Date: 1 year ago
Size: 516 bytes
 

Contents

Class file image Download
<?php
header
('Content-Type: text/html');
include_once
__DIR__.'/../include/SMSGateWay.php';
if(isset(
$_POST["btnSend"])) {
   
$gw = new SMSGateWay(__DIR__."/smsgateway.lock");
   
$gw->sendMessage($_POST["number"], $_POST["message"]);
}
?>

<html>
<head>
</head>
<body>
<form method="post">
    <input name="number" placeholder="Telephone number" required><br>
    <textarea rows="4" cols="60" name="message" required></textarea><br>
    <input type="submit" name="btnSend" value="Send">
</form>
</body>
</html>