title: How to retrieve data from jQuery.Post() in PHP?
body: <p>I am currently trying to send a string to a to a php script which will eventually return a JSON  file.
  Here is code i'm using to send the string:</p>
  
  <pre><code>var str = "testString";    
  $.post("php/getTimes.php", str,
      function(data){
              console.log(data.name);
          console.log(data.time);
      }, "json");
  </code></pre>
  
  <p>In the 'getTimes' php file I am simply trying to receive the 'str' variable I am passing. Any ideas how to do this? It seems like it should be pretty simple. </p>