title: Upload PHP with jQuery
body: <p>I need to put a javascript variable in js file to php variable in php file to do action in sql db later.
  I use local server Apache to do this. My javascript variable is "uid"</p>
  
  <p>In my js file I've insert this : </p>
  
  <pre><code>function post()
  {
    $.ajax({
      type: "POST",
      url: "proc.php",
      data: uid, 
  
    });   
  }
  </code></pre>
  
  <p>In my php file named "proc.php" the code is :</p>
  
  <pre><code>&lt;?php
  
  $myvar = $_POST['uid'];
  echo 'myvar';
  
  ?&gt;
  </code></pre>
  
  <p>Is it possible to display by echo "myvar" in alert box to know if my code works ?</p>