Ok, I'm a :sign0104: at PHP and HTML.. I'm attempting to insert records into a mySQL table. I'm passing the values inserted into the url to a PHP script which does the actual inserting. It works when I use a browser but not from my device. Nothing happens. No results from either the ResponseSuccess or ResponseError subs.. Here's a code example. From my research it appears that I use the get method. Is that correct or should I be using post?
Been fighting this for hours and from past experience I'm missing something very basic. :BangHead:
B4X:
' http_req is dim as HttpClient in global
dim sURL as String
Dim request As HttpRequest
ProgressDialogShow("Please wait...Updating")
sURL = "http://www.mydomain.com/test.php?name=Bob&age=25"
request.InitializeGet(sURL)
request.Timeout=30000
If Http_req.Execute(request, 1) = False Then Return
Been fighting this for hours and from past experience I'm missing something very basic. :BangHead:
Last edited: