Accessing a variable passed by jquery using php
<p>How does php access a variable passed by JQuery?</p>

<p>I have the following code:</p>

<pre><code>$.post("getLatLong.php", { latitude: 500000},
   function(data){
     alert("Data Loaded: " + data);
   });
</code></pre>

<p>but I don't understand how to access this value using php.</p>

<p>I've tried </p>

<pre><code>$userLat=$_GET["latitude"]; 
</code></pre>

<p>and </p>

<pre><code>$userLat=$_GET[latitude];
</code></pre>

<p>and then I try to print out the value (to check that it worked) using:</p>

<p><code>echo $userLat;</code> but it does not return anything. I can't figure out how to access what is being passed to it. </p>
