What did you expect? The Label will hold the content of the variable "mResult". I guess it is an empty string.`That´s why you get an empty content...
Poststring does not set any value...
What exactly are you trying to do?
Do you want the answer from the php to be in your label?
If yes then you should get the result inside the JobDone sub....
B4X:
Sub JobDone(Job As HttpJob)
ProgressDialogHide
Log("JobName: "&Job.JobName)
If Job.Success = False Then
Log(Job.ErrorMessage)
ToastMessageShow("Error: " & Job.ErrorMessage, True)
Label1.Text = Job.ErrorMessage
else If Job.Success Then
If Job.JobName = "Job2" Then
Dim res As String
res = Job.GetString
Log(res)
Label1.Text = res
End If
End If
Job.Release
End Sub
Then I am getting the result as attached under result.jpg and somehow the Location=PMB has combined with mResult in the database. There is something I am missing , either too many & or I need to add a ' or "
Dim mResult As String = "blablabla"
Dim job2 As HttpJob
job2.Initialize("Job2", Me)
'job2.PostString("http://www.himel.co.za/sen_post.php","Barc="&mResult&"Location=PMB&User=Peter")
job2.PostMultipart("http://www.himel.co.za/sen_post.php",CreateMap("Barc":mResult,"Location":"PMB","User":"Peter"),Null)
Dim mResult As String = "blablabla"
Dim job2 As HttpJob
job2.Initialize("Job2", Me)
'job2.PostString("http://www.himel.co.za/sen_post.php","Barc="&mResult&"Location=PMB&User=Peter")
job2.PostMultipart("http://www.himel.co.za/sen_post.php",CreateMap("Barc":mResult,"Location":"PMB","User":"Peter"),Null)