Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,255
Total Threads: 81,240
Total Posts: 566,980
There are 136 users currently browsing (tf).
  Our Partners:
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

SMS feature to PHP site

Thread title: SMS feature to PHP site
    Thread tools Search this thread Display Modes  
01-18-2013, 03:36 PM
HugoDavid is offline HugoDavid
Status: I'm new around here
Join date: Jan 2013
Location: Debrecen, Hungary
Posts: 1
iTrader: 0 / 0%

HugoDavid is on a distinguished road

  Old  SMS feature to PHP site

I have an idea to add SMS functionality to a PHP website. The idea I may use is to have an HTML form, that allows the website visitor to enter a phone number and the message text. This HTML form can be submitted by clicking on a button. After submitting the form variables will be processed by a PHP script. This PHP script will post the SMS message to the an OzekiSMS Gateway (it will send and receive messages, I was suggested to use this).
HTML Form will be used to get the recipient telephone number and the message text from the website visitors. Source of the html file:


HTML Code:
   <h1>My SMS form</h1>
   <form method=post action='sendsms.php'>
   <table border=0>
     <td><input type='text' name='recipient'></td>
     <td><textarea rows=4 cols=40 name='message'></textarea></td>
     <td> </td>
     <td><input type=submit name=submit value=Send></td>
The php script will get the recipient, message fields from the HTML form and will build a URL to send the SMS message. This URL will pass the SMS message to the OzekiSMS gateway. The URL is invoked in the PHP script using the file command.

Do you think it is an easy way to do it or do you have any other idea?


Reply With Quote
04-07-2013, 04:45 PM
codersempire is offline codersempire
Status: I'm new around here
Join date: Apr 2013
Posts: 1
iTrader: 0 / 0%

codersempire is on a distinguished road


It would be easy way to do it.You can easily pass inputs from html form & create a small script with hidden fields like recipient number,message,etc. & do java-script to auto click a button or directly visit the gateway url with the inputs included.

Reply With Quote
04-13-2013, 02:37 AM
Sketch is offline Sketch
Sketch's Avatar
Status: Member
Join date: Aug 2005
Location: Melbourne, Australia
Posts: 419
iTrader: 0 / 0%

Sketch is on a distinguished road


Thats the standard way to do it - however I'm not sure about using the file command. Most of the time curl is used. See this example;

Could help you out in how to post with curl

Reply With Quote

Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed