title: Link to a page with submit button without form action/forms within forms
body: <p>I am working on a php/html/js page.</p>
  
  <p>I have two buttons.  They both need to submit the same form data, but I want one to link to another page(which needs the form data from this page) and one to do something on the current page.</p>
  
  <p>I don't know how to make the linkage button go to another page AND post the same form data AND not lose the post data (using something like header('Location:')).  </p>
  
  <p>I can't set form action="page.php" because then both buttons would change pages.  A form within a form doesn't work either.</p>
  
  <p>My setup is as follows:</p>
  
  <pre><code>&lt;form method="post" action="" name="aform"&gt;
  &lt;table&gt;
  &lt;tr&gt;&lt;td&gt;&lt;input type="submit" name="button" value"Clickit"&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="submit" name="button2" value"Click to link"&gt;&lt;/td&gt;
  &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Help appreciated.</p>