title: How to fetch a form data and to insert the data into another form in the exact field using PHP or any other
body: <p>here I have form 1 and from 2 with same fields and if I click a button form 2 should open with the fetched data from form 1.
  The fetched data from Form 1 should exactly placed into form 2. (bcoz both forms has same fields)  any help would be appreciated. </p>
  
  <p><strong>> Code for Form 1</strong></p>
  
  <pre><code>&lt;table class="auto-style15" style="width: 100%; height: 100%"&gt;
  &lt;tr&gt;
      &lt;td class="auto-style21" style="width: 44px"&gt;&lt;strong&gt;Sl No&lt;/strong&gt;&lt;/td&gt;
      &lt;td class="auto-style21" style="width: 115px"&gt;&lt;strong&gt;Part No&lt;/strong&gt;&lt;/td&gt;
      &lt;td class="auto-style21" style="width: 88px"&gt;&lt;strong&gt;Part Rev&lt;/strong&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;td class="auto-style7" style="width: 44px"&gt;
      &lt;input name="Text157" style="width: 35px" type="text" /&gt;&lt;/td&gt;
      &lt;td class="auto-style7" style="width: 115px"&gt;
      &lt;input name="Text20" style="width: 75px" type="text" /&gt;&lt;/td&gt;
      &lt;td class="auto-style7" style="width: 88px"&gt;
      &lt;input name="Text232" style="width: 75px" type="text" /&gt;&lt;/td&gt;
  &lt;/td&gt;
  &lt;/table&gt;
  </code></pre>
  
  <blockquote>
    <p><em>button</em></p>
  </blockquote>
  
  <pre><code>&lt;input id="cmaudit1" style="width: 90px" type="submit" value="Audit Checklist" 
      onClick="window.open ('form/CM form2.php',' width=500,height=400')"/&gt;
  </code></pre>
  
  <blockquote>
    <p><strong>Code for form 2</strong> where the datas from form 1 should fetch and display into the exact fields of form 2 , when a button is clicked</p>
  </blockquote>
  
  <pre><code>&lt;table class="auto-style15" style="width: 100%; height: 50%"&gt;
      &lt;input name="Text134" style="width: 130px; height: 38px;" type="text" /&gt;&lt;/td&gt;
      &lt;td class="auto-style21" style="width: 98px"&gt;&lt;strong&gt;Part&lt;/strong&gt;
      &lt;strong&gt;NO&lt;/strong&gt;&lt;/td&gt;
      &lt;td class="auto-style7" style="width: 113px"&gt;
  
      &lt;input name="Text129" style="width: 130px; height: 38px;" type="text" /&gt;&lt;/td&gt;
      &lt;td class="auto-style21" style="width: 59px"&gt;&lt;strong&gt;Rev&lt;/strong&gt;
      &lt;strong&gt;No&lt;/strong&gt;&lt;/td&gt;
      &lt;td class="auto-style7" style="width: 101px"&gt;
  
      &lt;input name="Text130" style="width: 130px; height: 38px;" type="text" /&gt;    &lt;/td&gt;
      &lt;td class="auto-style21" style="width: 60px"&gt;&lt;strong&gt;PO&lt;/strong&gt; &lt;strong&gt;
      No&lt;/strong&gt;&lt;/td&gt;
      &lt;td class="auto-style7" style="width: 117px"&gt;
  &lt;/td&gt;
  &lt;/table&gt;
  </code></pre>