Jump to content

SMS from PHP site


LeslieJohn

Recommended Posts

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). ozekisms.com/index.php?owpn=204

HTML Form will be used to get the recipient telephone number and the message text from the website visitors. Source of the html file:

 

sendsms.html

 

<html>

<body>

<h1>My SMS form</h1>

<form method=post action='sendsms.php'>

<table border=0>

<tr>

<td>Recipient</td>

<td><input type='text' name='recipient'></td>

</tr>

<tr>

<td>Message</td>

<td><textarea rows=4 cols=40 name='message'></textarea></td>

</tr>

<tr>

<td> </td>

<td><input type=submit name=submit value=Send></td>

</tr>

</table>

</form>

</body>

</html>

 

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?

Leslie

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.