title: Sending JavaScript variables to PHP file
body: <p>This is the JavaScript:</p>
  
  <pre><code>var sendlat;
  var sendlng;
  var sendid;
  
  // More code...
  
  $.post('insert.php', {variable: sendlat});
  $.post('insert.php', {variable: sendlng});
  </code></pre>
  
  <p>And this is the <code>insert.php</code> file:</p>
  
  <pre><code>$latitude = $_POST['sendlat'];
  $longtitude = $_POST['sendlng'];
  </code></pre>
  
  <p>This is giving me 0 values. What do I need to change?</p>