FrontlineSMS allows you to text message with large groups of people anywhere there is a mobile signal.
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());
mysql_select_db("$database");
// 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
mysql_query($send,$connect);
if($send){ echo'Congratulations and Thanks for registering with us.'; }
else { mysql_error(); }
}
} else die('Please Use the right format to register...');
mysql_close($connect);
}
?>
Http request is
http://localhost/sms/index.php?name=${sender_name}&num=${sender_number}&keyword=${keyword}&content=${message_content}&date=${date}
Tags:
Permalink Reply by Florence Scialom on May 17, 2012 at 9:25am 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.
Best
Flo
Permalink Reply by Gregory Mabula on May 19, 2012 at 6:01am I'm thinking may be the problem can be http trigger but I'm not sure.Thanks Florance I'm waiting!

Permalink Reply by Alex Anderson on May 21, 2012 at 11:01am 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.
Alex
Permalink Reply by Gregory Mabula on May 21, 2012 at 1:25pm 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.
Permalink Reply by Florence Scialom on May 22, 2012 at 4:21am 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? http://help.frontlinesms.com/manuals/1.6.16.3/httptrigger.htm
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.
Thanks
Flo
Permalink Reply by Gregory Mabula on May 22, 2012 at 6:08am 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.
Permalink Reply by Florence Scialom on May 25, 2012 at 10:31am 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.
Thanks
Flo
Permalink Reply by Florence Scialom on June 7, 2012 at 4:56am 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
Flo
Permalink Reply by Gregory Mabula on June 8, 2012 at 7:28am Thanks for that, but I'm Happy now,I found the solution for that task.
Permalink Reply by Dimpho Pholele on September 14, 2012 at 6:49am 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.
Thanks.
© 2013 Created by kiwanja.net.
Powered by