FrontlineSMS let users send, receive and manage SMS over a mobile network.

I'm using Frontlinesms for my website, I have the php scripts in my index file which I want it to insert the user information to my database and send  a message that the information has inserted successfully, for the case of inserting data it is ok, but the problem is that I'm getting an empty message as an auto reply, is there any more configuration I have to do? Anyone to help, below is my index php scripts.

$db_user = 'root';
$db_pwd = '';
$db_host = 'localhost';
$database = 'sms';
$table = 'info';

// Sets the variables coming from FrontlineSMS
$name = $_REQUEST['name'];
$num = $_REQUEST['num'];
$keyword = $_REQUEST['keyword'];
$content= $_REQUEST['content'];
$date = date("Y-m-d");

if (isset($_REQUEST['name'
// This variable connects to my database
$connect = mysql_connect("$db_host", "$db_user","$db_pwd") or die('Cannot connect to the database because: ' . mysql_error());

// This variable sets up the information to send to my database
$send = "INSERT INTO $table(name,num,keyword,content,date) VALUES('$name','$num','$keyword','$content','$date')";

//call the connect and send variables, and then close the connection

 if($send){ echo'Congratulations and Thanks for registering with us.'; }
        else { mysql_error(); }
       } else die('Please Use the right format to register...');


Http request is


Views: 379

Reply to This

Replies to This Discussion

Hi Gregory,

Thanks for posting about this. I'm not sure what the issue is here, but I can check in with our developer team and see if they are able to help. 



I'm thinking may be the problem can be http trigger but I'm not sure.Thanks Florance I'm waiting!

Hi Gregory,

Can you post a screenshot of your keyword configuration in FrontlineSMS?  It may be that you don't have the correct response type set, or you haven't included the ${message_content} substitution key.


Yes that was the problem, thanks its ok by now, I'm having another problem can you help me, step by step on how to manage my website to send sms to mobile phones,I'm using php.

Hi Gregory,

Thanks for your post, and glad to hear that the first issue you had is now fixed. 

To help with managing messages on your website, have you read through our help files material on setting up HTTP triggers?

If so could you please explain a little more about where you have got to with setting this up? Any additional information you can provide will help our developer team to better advise.



What I want is to create an html form page which will be used as an interface for sending sms to a phone number, the issue is that what will be the action page of my form page, for example <form id="form1" name="sendSMS" method="post" action="send.php">

my action page is send.php so the question is what will be the codes within this action page which will interact with the frontlinesms, just the sample, in php Thanks.

Hi Gregory, 

Thanks for the further details. I will just have to check in with our developer team again to see if they are able to help with this. We will get back to you as soon as possible.



Hi Gregory, 

I hope you are getting on well with your use of FrontlineSMS. I've now spoken with our developer team about your questions above, but they have informed me that we are unable to help directly with writing your php code. Apologies for the delay in letting you know.

Please let us know if you have any further specific questions about FrontlineSMS use, and we'd be happy to help. Wishing you all the best with your project!



Thanks for that, but I'm Happy now,I found the solution for that task.

Hi Gregory,

How did you do that, can you send us the line of php code you used, i have been using Frontline 1.6 so i upgraded to Frontline2 2.0 and i am stuck, i dont know how to send messages now from php or address bar  maybe.


Reply to Discussion


© 2017   Created by FrontlineSMS Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service