<?php
if(isset($_POST["submit"])) {
require("vinSMSIndia.class.php");
$sms = new vinSMSIndia;
$returnArr = $sms->sendSMS($_POST["mobile"],$_POST["subject"],$_POST["message"]);
if($returnArr) {
echo "<b>Mail sent to $returnArr[mobile] ($returnArr[state], $returnArr[service]) </b> at ".date("d-M-Y H:i:s",$returnArr['time']);
} else {
echo "<font color=red>SMS Sent failed!!!<br>Reason:".$sms->Error."</font>";
}
}
?>
<body bgcolor=#dedede>
<form action=example.php method=post>
<fieldset>
<legend ><font size=+4>vinayRas SMS Service</font></legend>
<table width=75%>
<tr>
<td align=right>Send to:</td><td><input type=text name=mobile></td>
</tr>
<tr>
<td align=right>Subject:</td><td><input type=text name=subject></td>
</tr>
<tr>
<td align=right>Message</td>
<td><textarea name=message rows=6 cols=44></textarea></td>
</tr>
<tr><td colspan=2 align=center>
<input type=submit name=submit value="Send SMS!">
</td></tr>
</table>
</fieldset>
<fieldset>
<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>
</table>
</fieldset>
</body>
</form>
|