web_form - <?php /* This file demonstrates SMS message...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
<?php /* This file demonstrates SMS message and site details being submitted through HTML form and then passed to SMS Web Sender. */ * // for debugging reasons we enable all error reporting error_reporting (E_ALL); e // include required classes // SMS Web Sender requires HTTP Navigator 2.2 or later, you must define // HTTPNAV_ROOT as SMS_Web_Sender will use it to find the relevant classes define('HTTPNAV_ROOT', realpath('. ./. ./http_navigator/classes/').'/'); require_once('. ./classes/SMS_Web_Sender.php'); r // set debug level // Debug::level(DEBUG_OUTPUT_FILENAME); Debug::level(DEBUG_OUTPUT_FILENAME | DEBUG_OUTPUT_LINE); D // create instance of SMS_Web_Sender $sws =& new SMS_Web_Sender(); $ // smssend sites // by default smssend sites found in the smssend_sites folder can be used // to disable smssend sites you can call set_allow_smssend() // $sws->set_allow_smssend(false); / // get_site_names() returns an indexed array of site names which can be used // in a form select field. $sites = $sws->get_site_names();
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

web_form - &lt;?php /* This file demonstrates SMS message...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online