I have a simple form that I use to send SMS messages to a system we have developed. Generally I type the message into the form manually but I would like to set up an automated system. The system would would automatically send predefined messages at intervals from a list either in a text file or MySql DB. I would prefer to do this in a text file if possible. Here's the scenario:
Text File With Messages to Send:
Who is the king of france?
When is the next U.S. Holiday?
Who's on first?
<form method="get" action="http://254.254.254.254/
" target="_self" name="">
<input type="text" name="Data" size="160" value=""><br>
<input type="submit" name="Submit" size="50" value="Send Query">
<input type="hidden" name="OriginatorAddress" value="8005551212">
The idea is to have this page up in a browser and some mechanism to pull the first line from the text file and submit it. Then it pulls the second line and submits it. Third line...etc.... All of this would happen at predefined intervals (maybe 20 seconds or so).
A PHP or other easy system would be preferred. Thanks.