Today Bulksms Offer

Send SMS with PHP SMS Script

PHP SMS messaging is one of the services we offer. Here we'll show you how to use our SMS gateway in PHP. Take the SMS PHP script code below to send SMS via Developers' Central. Simply register for an account, and you will automatically receive 10 FREE SMS credits to try our service.

Code to send SMS in PHP:

<!DOCTYPE html>
$user = $_POST['user'];
$senderid = $_POST['senderid'];
$channel = $_POST['channel'];
$DCS = $_POST['DCS'];
$flashsms = $_POST['flashsms'];
$number = $_POST['number'];
$message = $_POST['message'];
$route = $_POST['route'];

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,2);
$data = curl_exec($ch);
print($data); /* result of API call*/
<form method="post" action="">
<table><input type="text" id="TextBox1" name="" value="" readonly="readonly">APIKey=<input id="TextBox2" type="text" name="user" value="">
Sender ID<input id="TextBox3" type="text" name="senderid" value="WEBSMS">
Channel<input id="TextBox4" type="text" name="channel" value="2">
DCS<input id="TextBox5" type="text" name="DCS" value="0">
FlashSMS<input id="TextBox6" type="text" name="flashsms" value="0">
Mobileno:<input id="TextBox7" type="text" name="number" value="">
Message:<input id="TextBox8" type="text" name="message" value="">
Route:<input id="TextBox9" type="text" name="route" value="1">
<input type="submit" name="submit2" value="submit" onClick='getValue(); return false;'>
<input type="submit" name="submit1" value="Response">

Please note that some of the above code has been supplied to SMSGATEWAYHUB by clients. As such, accuracy is not guaranteed by SMSGATEWAYHUB.