Pass string variable from java to php function
<p>I am a beginner java and php
I must pass a string variable from Java client to php server using WebView</p>

<p>Is what I am doing right?</p>

<p>In java side:</p>

<pre><code>String Coords=CoordsString;
String PHPPagePath="http://10.0.2.2/ReceiveLocation.php?Coords=" + CoordsString"; 
</code></pre>

<p>and on the php side: 
ReceiveLocation.php</p>

<pre><code> &lt;?php
include('ConnectionFunctions.php');
Connection(); 
$x=$_GET['Coords'];
GetCoords($x);
function GetCoords($x)
{
   echo $x;
}   
?&gt;
</code></pre>

<p>Is this the right way to pass the parameter Coords from Java Client to PHP Server Function?</p>
