How to Send Text Messages SMS Gateway – PHP SMS API

How to Send Text Messages SMS Gateway – PHP SMS API

In this Post We Will Explain About is How to Send Text Messages SMS Gateway – PHP SMS API With Example and Demo.Welcome on Pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Beginners SMS API PHP tutorial: How to create a new SMS web app Example

In this post we will show you Best way to implement Send SMS With PHP Code – PHP, hear for Step-by-step PHP tutorial – Create your new SMS web app using Infobip SMS API with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

How to integrate SMS In PHP form

Here, In this Example, we have simple two files created for integrate SMS using PHP form like as a source code below

  • index.php
  • do_submit.php

index.php



Form

Your Name:

Your Email:

Your Phone:

do_submit.php

 $authKey,
'mobiles' => $contactno,
'message' => $message,
'sender' => $senderId,
'route' => $route
);

$url="http://sms.com/api/sendhttp.php";


$my_ch = curl_init();
curl_setopt_array($my_ch, array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $postData
//,CURLOPT_FOLLOWLOCATION => true
));


curl_setopt($my_ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($my_ch, CURLOPT_SSL_VERIFYPEER, 0);

$output = curl_exec($my_ch);
if(curl_errno($my_ch))
{
	echo 'error:' . curl_error($my_ch);
}
curl_close($my_ch);
echo "
";
echo $output;
echo "

";
$url='localhost';
$username='live24';
$password='2545@#$dfhhdf';
$conn=mysqli_connect($url,$username,$password,"sms_send");
if(!$conn){
die('Could not Connect My Sql:' .mysql_error());
}
if(isset($_POST['btn-save']))
{
//get all the post method to parameters for input data
$name = $_POST['name'];
$email = $_POST['email'];
$contactno = $_POST['contactno'];

//simple database sql query for all the record inserting data into database
mysqli_query($conn,"insert into employerr (name, email, contactno) values ('$name', '$email', '$contactno')") or die(mysqli_error());
echo 'Thanks a lot for your contact with over Company(www.Pakainfo.com).';
}
?>

How to Send Text Messages SMS Gateway - PHP SMS API steps
How to Send Text Messages SMS Gateway – PHP SMS API steps

You are Most welcome in my youtube Channel Please shubscibe my channel. and give me FeedBack.
More Details……
Angularjs Example

Example

I hope you have Got What is how to send sms using php program (full code sample included) And how it works.I would Like to have FeedBack From My Blog(Pakainfo.com) readers.Your Valuable FeedBack,Any Question,or any Comments about This Article(Pakainfo.com) Are Most Always Welcome.

Leave a Comment