I am trying to synchronize SQLite data on my tablet with a MYSQL Database on an XAMPP server (across a LAN for now). I have written a php script which works when called as localhost from a browser using $_GET in the php file. I then changed the $_GET's in my php file to $_POST and tried writing a record by calling job1.poststring(...) from my tablet. The php script runs and it returns half-sensible results to the tablet, but the $_POST array is empty ie echo var_dump($_POST) returns an empty array;
I have checked php.ini MaxPOST = 8Mb and I have tried including <form method = "post"> but not sure whether I have put this in the correct place.
B4ACode follows:-
Has anyone else managed to get this working using XAMPP?
I have checked php.ini MaxPOST = 8Mb and I have tried including <form method = "post"> but not sure whether I have put this in the correct place.
B4ACode follows:-
B4X:
Dim Job1 As HttpJob
Job1.Initialize("JobWriteEnergyRecord",Me)
Dim myPostString2 As String
myPostString2 = "id=" & EnergyC.GetInt("ID") & _
"&fromdate=" & EnergyC.GetLong("FromDate") & _
"&todate=" & EnergyC.GetLong("ToDate") & _
"&esigma=" & EnergyC.GetLong("EnergyOccupied")
Dim ServerString As String
ServerString = "http://192.168.0.15/energy"
Job1.PostString(ServerString,myPostString2)
Has anyone else managed to get this working using XAMPP?