2 way SMS

2 way SMS SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through July 14, 2004 » 2 way SMS « Previous || Next »
Author Message
Posted on Monday, May 17, 2004 - 09:52 am:   

hi there,

need your help to solve my questions below:

1. when someone send me a sms with key word "sales", nowsms will pick up the last 3 months sales record from a simple txt. file (all the database stored in a plain txt file.) meanwhile, i want to tag sender phone no., so that those phone nos. in the databse will only can check their own data.

2. do you have any other source code example besides the echo example, i need to study more details about this.

3. can nowsms interact with microsoft excel database? if yes, how to go about it?

thanks for your help.

best rgds, James
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2625
Registered: 10-2002
Posted on Monday, May 17, 2004 - 04:24 pm:   

Hi James,

Unfortunately, the only good 2-way examples that I have for this are PHP-based.


But you'd have to add the application logic to open and read a file to extact data based upon the sender number.

I like using "echo" examples because basically they can show some parsing of the request, and how to send a response back.

I've been meaning to do an ASP version of some of the PHP examples.

Here's a real simple one along the lines of the first echo example in the above thread.

Let's say you have a 2-way command configured to call http://server/2way.asp?sender=@@SENDER@@&text=@@FULLSMS@@

Here's an example of what 2way.asp could look like:

Response.ContentType = "text/plain"

If Request.QueryString("sender") = "" Then
Response.Write ("ERROR : 'sender' parameter missing!")
Else If (Request.QueryString("text") = "") Then
Response.Write ("ERROR : 'text' parameter missing!")
Response.Write ("I received your message : ")
Response.Write (Request.QueryString("text"))
End If
End If

I realise that all this example does is send an echo response back, but basically it shows how the variables are sent to an ASP script, and how you return back text in the SMS message that is sent back in reply.

So basically, if you can write an ASP script to return the information out of your text file or database, you can adapt the script pretty easily to return a response via SMS.


Login Login / Register Logout Logout Search Last 30 Days Topics Topics