Send SMS Message Using Clickatell API – Part 3
Posted on September 24th, 2007 in HTTP/S, PHP Tutorials | No Comments »
The next part of the tutorial is the Interface to type your SMS Message. I have designed a simple interface that you can use. You can also design one yourself; and in designing one, just make sure you have the the following three fields
- “to”
- “from”
- “Message”
“to”
This is the field where you type in the RECIPIENT NUMBER. Make sure it is in an international format. eg. +233244232323 or +16364545555
“from”
This is the field where you type in the either YOUR NUMBER or YOUR NAME. If you type your name, make sure you dont leave spaces.
“message”
This is the field where you type your MESSAGE. Clickatell sets the default message length to 160 characters, but you can increase it to any number you want on your Clickatell Control Panel.
Compose.php
<?php
//**************************************
//
// Send SMS Message Using Clickatell API – Part 3
// 23rd September 2007
// www.mboateng.com
// Michael Ofori Amanfo Boateng
//
//***************************************?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Sending SMS Message with Clickatell API</title>
</head>
<body>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td><form action=”send.php” method=”post” enctype=”application/x-www-form-urlencoded” name=”smssender” id=”smssender”>
<table width=”100%” border=”0″ cellpadding=”3″ cellspacing=”3″ class=”text”>
<tr>
<td>From :
<input name=”from” type=”text” id=”from” size=”20″ maxlength=”14″ />
</td>
</tr>
<tr>
<td><strong>Recipient</strong>:
<input name=”to” type=”text” id=”to” size=”20″ />
(Number in international format eg. +233244666666)</td>
</tr>
<tr>
<td><textarea name=”message” cols=”40″ rows=”7″ id=”message” ></textarea></td>
</tr>
<tr>
<td><input name=”SendMessage” type=”submit” class=”form_button” value=”Send Message” id=”SendMessage” /></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7















