File: example.php

Recommend this page to a friend!
  Classes of Vinay Yadav  >  vinSMSIndia  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Usage with Sample form
Class: vinSMSIndia
Send Free SMS in India
Author: By
Last change:
Date: 17 years ago
Size: 2,054 bytes


Class file image Download

if(isset($_POST["submit"])) {
$sms = new vinSMSIndia;
$returnArr = $sms->sendSMS($_POST["mobile"],$_POST["subject"],$_POST["message"]);
$returnArr) {
"<b>Mail sent to $returnArr[mobile] ($returnArr[state], $returnArr[service]) </b> at ".date("d-M-Y H:i:s",$returnArr['time']);
    } else {
"<font color=red>SMS Sent failed!!!<br>Reason:".$sms->Error."</font>";
<body bgcolor=#dedede>
<form action=example.php method=post>
<legend ><font size=+4>vinayRas SMS Service</font></legend>
<table width=75%>
        <td align=right>Send to:</td><td><input type=text name=mobile></td>
        <td align=right>Subject:</td><td><input type=text name=subject></td>
        <td align=right>Message</td>
        <td><textarea name=message rows=6 cols=44></textarea></td>
    <tr><td colspan=2 align=center>
        <input type=submit name=submit value="Send SMS!">
    <LEGEND>Supported Networks</LEGEND>
<table width=100% cellspacing=3>
<tr><td valign=top align=right><b>Airtel :</b></td><td>Andhra Pradesh, Madhya Pradesh, Chennai (Skycell), Delhi, Gujarat, Haryana, Himachal Pradesh, Goa, Karnataka, Kerala, Kolkata, Maharashtra, Mumbai, Punjab, Tamil Nadu, Uttar Pradesh (West)</td></tr>
<tr><td valign=top align=right><b>Hutch :</b></td><td>Delhi</td></tr>
<tr><td valign=top align=right><b>Escotel :</b></td><td>Haryana, Uttar Pradesh (West), Kerala</td></tr>
<tr><td valign=top align=right><b>BPL Mobile :</b></td><td>Mumbai, Maharashtra, Kerala, Tamil Nadu, Pondicherry, Goa</td></tr>
<tr><td valign=top align=right><b>Idea Cellular :</b></td><td>Andhra Pradesh (Tata), Maharashtra, Goa, Gujarat</td></tr>
<tr><td valign=top align=right><b>RPG Cellular:</b></td><td>Chennai</td></tr>
<tr><td valign=top align=right><b>Aircel :</b></td><td>Tamil Nadu</td></tr>
<tr><td valign=top align=right><b>Celforce(Fascel):</b></td><td>Gujarat</td></tr>

For more information send a message to info at phpclasses dot org.