I am a beginner java and php I must pass a string variable from Java client to php server using WebView
Is what I am doing right?
In java side:
String Coords=CoordsString;
String PHPPagePath="http://10.0.2.2/ReceiveLocation.php?Coords=" + CoordsString";
and on the php side: ReceiveLocation.php
<?php
include('ConnectionFunctions.php');
Connection();
$x=$_GET['Coords'];
GetCoords($x);
function GetCoords($x)
{
echo $x;
}
?>
Is this the right way to pass the parameter Coords from Java Client to PHP Server Function?