Hi All,
I am trying to create an interface where I can send Text messages to
multiple recipients whose numbers are stored in a simple MySQL table.
If someone has done this before, I would appreciate any useful pointers. I
am able to send to one user using PHP as follows:
Input file: inputform.php
<form method="post" action="sendsms.php"><table>
<tr>
<td>Phone number:</td><td><input type=text name=number></td>
</tr>
<tr>
<td>Message:</td><td><input type=text name=message></td>
</tr>
<tr>
<td>Username:</td><td><input type=text name=username></td>
</tr>
<tr>
<td>Password:</td><td><input type=password name=pass></td>
</tr>
<tr>
<td><input type=submit name=send value=submit></td><td></td>
</tr>
</table></form>
And ...
sendsms.php:
<?php
header("Location:http://localhost:13013/cgi-bin/sendsms?username=$_REQ
UEST[username]&password=$_REQUEST[pass]&to=$_REQUEST[number]&text=$_REQUEST[
message]");
?>
This works well for a single message by manually inputting number but I
would like it to pick recipients from a database.
Thanks in Advance.
Ralph