Ask script php auto respon

Ask script php auto respon SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through February 09, 2012 » Ask script php auto respon « Previous || Next »
Author Message
rido wisnu widodo
New member
Username: Pakdhekoi

Post Number: 1
Registered: 10-2011
Posted on Monday, October 03, 2011 - 07:53 pm:   

please help sample php script, I am from indo, i still a beginner, I want to make the service service vehicle license plate number with a 2-way smsnow php and mysql, for example if XYZ B2345R sms with the code can return the identity of the vehicle directly from an existing database and return an error message if the code guide the writing of the message .... thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3501
Registered: 08-2008
Posted on Tuesday, October 04, 2011 - 07:11 pm:   

I'm not really sure where to start ...

Have you written a PHP script before?

I'd start by writing a simple web script. Make a simple web page with a single input field for the vehicle number. Use a FORM method of GET when putting together the form.

Let's say form processing script is http://test/vehiclequery.php and the vehicle number variable in your form is name VNUMBER.

To convert this to a 2-way command script, the 2-way command in NowSMS would be http://test/vehiclequery.php?VNUMBER=@@FULLSMS@@

NowSMS will pass the text of the SMS to your form process as the VNUMBER variable, just like if that number was entered into the web form.

There is one catch, your form processing script needs to return a response using the MIME type "text/plain".

There is a good simple example here:

http://support.nowsms.com/discus/messages/1/3991.html

And some more background here:

http://support.nowsms.com/discus/messages/1/4520.html


There is no database part in the example ... but that is outside the scope of NowSMS ... you'd handle the database lookup part the same way you would as if you were processing a web form. These examples focus on the NowSMS interfacing part.

--
Des
NowSMS Support

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