Show hidden form in step by step process
<p>I have a page with a button that is hiding a form with some jQuery when clicked:</p>

<pre><code>&lt;a id="customise" class="configure-demo" href="#"&gt;Configure new system &amp;amp; get quote&lt;/a&gt;
</code></pre>

<p>With the jQuery to hide it being this:</p>

<pre><code>&lt;script type="text/javascript"&gt;
jQuery(document).ready(function( $ ) {
$("#customise").click(function(){
    $(".entire_product").hide();
    $(".customise").show();
});
});
&lt;/script&gt;
</code></pre>

<p>This hides what is initially on the page and shows a hidden step by step form. There will be several steps but each time next is clicked the page reloads and the next step shows</p>

<pre><code>&lt;div class="customise" style="display:none;"&gt;    
&lt;form class="form" method="POST" action="&lt;?php the_permalink(); ?&gt;"&gt;
        &lt;? if (!$_POST['step']) { ?&gt;
        &lt;input type="hidden" name="step" value="1" /&gt;               

        Step 1 info.

        &lt;?  } else if ($_POST['step'] == 1) {
            foreach($_POST as $name =&gt; $value) {
            if ($name &lt;&gt; "step") { echo "&lt;input type=\"hidden\" name=\"$name\" value=\"$value\" /&gt;";  $field .= $name."=".$value."&amp;";}
        } ?&gt;
        &lt;input type="hidden" name="step" value="2" /&gt;               

        Step 2 info

        &lt;? } else if ($_POST['step'] == 2) { //do stuff 
            echo "Do stuff here";
        } ?&gt;
    &lt;/form&gt;
&lt;/div&gt;
</code></pre>

<p>The problem is when you click next on the form, it reloads the page (as it should) but the form is then hidden again until the button at the top of the question is clicked, then it shows the next step.</p>

<p>How can I show step 2 of the form whilst showing the hidden form on reload?</p>

<p>Obviously if the user isn't in the form process then it should keep the form hidden.</p>
