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 – 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



<form action="do_submit.php" method="post">
	Your Name:<br><br>
	Your Email:<br><br>
	Your Phone:<br><br>
	<button type="submit" name="btn- save">User Submit</button>


'mobiles' => $contactno,
'message' => $message,
'sender' => $senderId,
'route' => $route


$my_ch = curl_init();
curl_setopt_array($my_ch, array(
CURLOPT_URL => $url,

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

$output = curl_exec($my_ch);
	echo 'error:' . curl_error($my_ch);
echo "<pre>";
echo $output;
echo "</pre>";
$password='[email protected]#$dfhhdf';
die('Could not Connect My Sql:' .mysql_error());
//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(';

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


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( readers.Your Valuable FeedBack,Any Question,or any Comments about This Article( Are Most Always Welcome.

Related FAQ

Here are some more FAQ related to this Article:

  1.   WordPress AJAX URL GET POST Call PHP Function
  2.   How to copy text to Clipboard using Vuejs
  3.   Block specific IP Addresses Website Access by Country using PHP
  4.   Laravel detect device and redirect to Mobile-tablet website in PHP
  5.   Multi Dimensional Array Sorting in Php
  6.   Laravel 6 Pagination Link Customizations Example
  7.   delete Query In Codeigniter Example Tutorial
  8.   Bootstrap Product slider List Carousel for Ecommerce Website
  9.   how to check install laravel version?
  10.   How to Create CAPTCHA image verification using PHP and jQuery