 <p>This code should loop through all POST and insert them into a hidden input field. Put it inside the <code>&lt;form&gt;</code> tags, and it should be submitted with the subsequent post.</p> <p><strong>Remember to properly escape the output.</strong></p> <pre><code>foreach($_POST as $name =&gt; $value){ echo '&lt;input type="hidden" name="'.$name.'" value="'.$value.'" /&gt;'; } </code></pre> <p>Or you can save away the data in the manner you choose.</p>