Location: PHPKode > scripts > Gammu > sampleTwoActionPage.php
<?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!'");
?>
Return current item: Gammu