Hello
I have a (small) problem with HttpPost when passing parameters.
So far I always did this with a parameter list.
Actually this works always except I have a '&' character in a variable. Then I get errors of course.
I always mask the & character and it works that way.
But this is not reasonable.
But I don't want to put the whole thing into a Json string,
because I want to receive the whole on the PHP page as shown below.
$username = isset($_POST['username']) ? $_POST['username'] : '?
best regards
Frank
I have a (small) problem with HttpPost when passing parameters.
So far I always did this with a parameter list.
Actually this works always except I have a '&' character in a variable. Then I get errors of course.
I always mask the & character and it works that way.
But this is not reasonable.
But I don't want to put the whole thing into a Json string,
because I want to receive the whole on the PHP page as shown below.
$username = isset($_POST['username']) ? $_POST['username'] : '?
best regards
Frank
B4X:
Dim post_params As String = "table=" & table & "&username=" & username
Dim read_locations As HttpJob
read_locations.Initialize("read_locations",Me)
Dim URL As String = Server & "/xxx.php"
read_locations.PostString(URL,post_params)
Wait For (read_locations) JobDone(read_locations As HttpJob)
If read_locations.Success Then
'do something
Else
'do something else
End If
read_locations.Release