Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

SMS from PHP site

General discussions related to php

Moderators: macek, egami, gesf

SMS from PHP site

Postby LeslieJohn » Thu Jan 17, 2013 1:43 am

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:


Code: Select all
   <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?
New php-forum User
New php-forum User
Posts: 1
Joined: Thu Jan 17, 2013 1:40 am

Return to PHP General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.