title: Php file request through ajax using two variables from jquery
body: <p>I have this: A javascript file that does a request to a php file.</p>
  
  <p>I have two variables called Lat and Lng in my javascript.
  When I do the request to the php file with ajax I would like those two variables to be translated in to php values that the php file will use.</p>
  
  <p>I hope this explains it clear enough.
  How can I do this?</p>
  
  <p>Code: Javascript</p>
  
  <pre><code>var lng = center.lng();
  var lat = center.lat();
  $.ajax({
      url: "ajax.php"
  }).done(function(data){};
  </code></pre>
  
  <p>Code: Php</p>
  
  <pre><code>$lat = '';
  $lng = '';
  </code></pre>
  
  <p>What I want is those two variable values from the Javascript in the php with each request.</p>
  
  <p>If it helps to know what I'm doing exactly:
  I'm getting the longtitude and latitude from the google maps center.
  These values I want to use in the file_get_contents url in my php.
  Every time the request happens the url gets dynamic because the values will be send with the request.</p>