Hello All,
I need help on the http_post function please. I am not sure if this is the correct function for the values I need to send as I am not too clued up with this one.
Basically, I need to send values to their server in order for them to send out an sms or bulk sms'es
In the example they wanted the following values:
Type of post: single or bulk
username
password
etc.
They did send me an example of the values to be posted and mentioned I should use a http_post function for this:
Any asistance with this will be much appreciated.
Walter
I need help on the http_post function please. I am not sure if this is the correct function for the values I need to send as I am not too clued up with this one.
Basically, I need to send values to their server in order for them to send out an sms or bulk sms'es
In the example they wanted the following values:
Type of post: single or bulk
username
password
etc.
They did send me an example of the values to be posted and mentioned I should use a http_post function for this:
HTML Code:
</form> </td></tr> <tr><td height="10"></td></tr> <td><tr> <form method="POST" action="http://www.smsportal.co.za/httppost3.aspx"> <input type="hidden" name="Type" size="20" value="Bulk"> <Table border=1> <tr><td colspan="2">Bulk SMS</td></tr> <tr><td>Username</td><td><input type="text" name="Username" size="20"></td></tr><!--You username --> <tr><td>Password</td><td><input type="text" name="Password" size="20"></td></tr><!--You Password --> <tr><td>Number</td><td><input type="text" name="Numbers" size="20"></td></tr><!--Numbers in a comma seperated string eg: 0832297941,0832297911--> <tr><td>Message</td><td><input type="text" name="Message" size="20"></td></tr><!--Your message no longer than 160 chars --> <tr><td>SendDate</td><td><input type="text" name="SendDate" size="20" value="2/Nov/2005"></td></tr><!--date in the format dd/mmm/yyyy --> <tr><td>SendTime</td><td><input type="text" name="SendTime" size="20" value="21:00"></td></tr><!--24 hour time format HH:mm --> <tr><td></td><td> <input type="submit" value="Submit" name="B1"></td></tr> <!--It will return the a "true" or "false" and then a description eg: "False, your username and password do not match!" or "True, Successfully sent"
Walter
Comment