Login   Register  
PHP Classes
elePHPant
Icontem

File: sampleTwoActionPage.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Davis Muhajereen D. Dimalen  >  Gammu  >  sampleTwoActionPage.php  >  Download  
File: sampleTwoActionPage.php
Role: Example script
Content type: text/plain
Description: Second sample action page 2/2
Class: Gammu
Control mobile devices using the tool Gammu
Author: By
Last change:
Date: 8 years ago
Size: 566 bytes
 

Contents

Class file image Download
<?php
    
include_once('class.gammuWin32.php');      // Make sure the class is in the same directory
    
$gammuPath "c:\gammu\win32\\";        // Path of the gammu software
    
$gammuExecutable "gammu";                // Gammu executable file
    
    
$mySms = new gammuWin32($gammuPath.$gammuExecutable);      // Instantiate gammuWin32

    
$mySms->sendSMS($_POST['celnum'], $_POST['message']);      // This will send the message in $_POST['message'] and send it to 
                                                            // the cellphone number in $_POST['celnum']
            
    
header("Location: "."sampleTwoForm.php?msg='Message Sent!'");
?>