In the log files I read that the value is passed, but the website does not appear
-------------------------------
Logs
JobName = Job2, Success = true
I've received 45 and 552
--------------------------------
Page PHP
---------------------------------
I only see this page in PHP:
I've received and
B4X:
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: False
#End Region
Sub Process_Globals
End Sub
Sub Globals
'Private EditText1 As EditText
Private Button1 As Button
Dim job2 As HttpJob
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("test")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
' Dim name As String = EditText1.Text
' If name = "" Then
' Msgbox("Please enter Name", "Error")
' Return
' End If
'Send a POST request
job2.Initialize("Job2", Me)
job2.PostString("http://www.mysite.com/test.php", "p1=45&p2=552")
End Sub
Sub JobDone (Job As HttpJob)
Log("JobName = " & Job.JobName & ", Success = " & Job.Success)
If Job.Success = True Then
'print the result to the logs
Log(Job.GetString)
Else
Log("Error: " & Job.ErrorMessage)
ToastMessageShow("Error: " & Job.ErrorMessage, True)
End If
Job.Release
End Sub
-------------------------------
Logs
JobName = Job2, Success = true
I've received 45 and 552
--------------------------------
Page PHP
PHP:
<?
$p1 = $_POST["p1"];
$p2 = $_POST["p2"];
print ("I've received $p1 and $p2");
?>
---------------------------------
I only see this page in PHP:
I've received and