title: jQuery Post non working
body: <p>I'm trying to send via javascript some variables to a php file which will store them in a db. However nothing happens and I don't find my mistake. I am sure that the variables are initizialised in javascript and they are not in php (cause the php code write an empty log).
  Can you help me? Thanks a lot</p>
  
  <p>Javascript code:</p>
  
  <pre><code>&lt;script src="http://localhost:8080/libs/jquery-1.10.2.min.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          function returned(data) {
              alert(data);
          }
  
          function postSecret()
          {
  
              ....
  
              alert(v_text + "\n" + v_age + "\n" + v_is_male);
  
              jQuery.post( "http://localhost:8080/libs/post.php", { text: v_text, age: v_age, is_male: v_is_male },  returned(data), "json");
          }
      &lt;/script&gt;
  </code></pre>
  
  <p>Post.php:</p>
  
  <pre><code>&lt;?php
  
      printf("dkls");
  
      $file = 'log.txt';
      $content .= "session: ".$_POST['text']."  ||  ".$_POST['is_male']."  ||  ".$_POST['age']."\n";
      file_put_contents($file, $content, FILE_APPEND | LOCK_EX);
  
      ... database...
  
  ?&gt;
  </code></pre>