title: HTML5 geolocation, pass lat/long to PHP variable on click
body: <p>Is it possible to get the latitude / longitude of a user using HTML5 geolocation when they click a button and then redirect to a new page where the values will have been passed to PHP variables?</p>
  
  <p>So if a user is on <code>index.php</code>, which contains the HTML5 geolocation code, and they click on this button;</p>
  
  <pre><code>&lt;span class="button get-my-location"&gt;My Location&lt;/span&gt;
  </code></pre>
  
  <p>They'll then be redirected to <code>weather.php</code> where their lat/long will be stored in 2 PHP variables <code>$lat</code> and <code>$long</code> </p>
  
  <p>Is this possible? I assume it would need to be AJAX based? Unfortunately AJAX isn't my strong suit.</p>
  
  <p>Any help would be great</p>