title: how to pass values from one page to another on jquery form submit
body: <p>I'm trying to build a form using php &amp; jquery, but I'm a little confused as to what to do with the jquery portion of it...  </p>
  
  <p>Basically, when the user submits the first form, I want to direct them to the "next step" form, but I want to retain the values submitted from the first one in a hidden input field...  </p>
  
  <p>If someone can either show me how or point me to a good tutorial, I'd appreciate it... </p>
  
  <p>I don't have any of the php or jquery yet, and this is just a simplified version of the html markup... </p>
  
  <pre><code>//first.php
  &lt;form name="form1" method="post" action="second.php"&gt;
  &lt;input type="text" name="name" value="" /&gt;Name
  &lt;input type="submit" name="step1" value="Next" /&gt;
  &lt;/form&gt;
  
  //second.php
  &lt;form name="form2" method="post" action="process.php"&gt;
  &lt;input type="hidden" name="name" value="{$_POST['name']}" /&gt;
  &lt;input type="text" name="message" value="" /&gt;message
  &lt;input type="submit" name="step2" value="Finish" /&gt;
  &lt;/form&gt;
  </code></pre>