title: Litle help in php and ajax filies
body: <p>I got stuck when using ajax as primary request sender to php.</p>
  
  <p>I was trying to send data to php file and then take that data to view in another file, but the problem is I don't know how to do it .</p>
  
  <p>I tried  </p>
  
  <pre><code>var ajax = ajaxObj("POST", "function.php");
  ajax.onreadystatechange = function() {
      if(ajaxReturn(ajax) == true) {
          window.location = "view.php";
      }
  }
  ajax.send("a="+a+"&amp;b="+b); 
  </code></pre>
  
  <p>it locate <code>view.php</code> and I want to take contents that sent 
  <code>function.php</code> and view it's contents in <code>view.php</code>.</p>
  
  <p>That is where my problem occurs. </p>
  
  <p>So, my question is <strong>HOW TO TAKE THOSE CONTENTS</strong></p>