title: Submit data from first page to second page then third page load content second page
body: <p>I have 3 php pages. </p>
  
  <p>first page: search.php</p>
  
  <p>secondpage: process.php</p>
  
  <p>third page: load.php</p>
  
  <p>The first page take user inputs and forward it to the second page which filters the input trough an algorithm. The first page is as follows:</p>
  
  <pre><code>&lt;form id="search" name="frmSearch" method="Post" action="secondpage.php" target ="thirdpage.php"&gt;
  
    &lt;p&gt;
        &lt;input type="text" id="from" name="txt_source" /&gt;
    &lt;/p&gt;
  
    &lt;p&gt;
      &lt;input type="text" id="to" name="txt_destination" /&gt;
    &lt;/p&gt;
  
    &lt;p&gt;
      &lt;input type="submit" name="btnSubmit" class="submi"/&gt;
    &lt;/p&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>As said earlier, the second page [secondPage.php] filters the result. Part of the code is</p>
  
  <pre><code>$source = &amp;$_POST['txt_source'];
  
  $destination = &amp;$_POST['txt_destination'];
  
  .... 
  ....
  ...
  </code></pre>
  
  <p>The output is in xml document tree format as follows</p>
  
  <p>This XML file does not appear to have any style information associated with it. The document tree is shown below.
  - - - - -- - - - - - - -- - -- - - -- - - -- - - -- - ....
  </p>
  
  <p></p>
  
  <p></p>
  
  <p></p>
  
  <p>The third page [thirdPage.php] should take the xml tag city displayed from the second page while third page load.</p>
  
  <p>When inputs from form on first page is submitted, the second page is displayed. However, while using </p>
  
  <p>header('location:thirdpage.php'); </p>
  
  <p>in second page to redirect to third page, the xml document tree do not load. So, i guess header('location:thirdpage.php'); is inefficient.</p>
  
  <p>Can someone help please or give a hint. I need a way to redirect the page to third page without affecting second page content. thanks.</p>