title: jQuery post() to php page
body: <p>I'm learning php/javascript so don't smile...</p>
  
  <p>I try from page1.php to post 3 variables to page2.php.
  I'm not sure what's wrong...
  Here is the code (simplified mode):</p>
  
  <p><strong>page1.php</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"&gt;&lt;/script&gt;  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;script type="text/javascript"&gt;
  window.onload = post_text;
  function post_text() {
  test1="111";
  test2="222";
  test3="333";
  $.post("page2.php", { test1:test1 , test2:test2, test3=test3 });
  }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>page2.php</strong></p>
  
  <pre><code>&lt;?php
  $a=$_POST['test1'];
  $b=$_POST['test2'];
  $c=$_POST['test3'];
  echo $a.$b.$c;
  ?&gt;
  </code></pre>