I start java and php I have to pass the string variable from Java client to php server using WebView
Is this what I'm doing right?
In the 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 it correct to pass the Coords parameter from the Java Client to the PHP Server function?
source share