My website involves a user submitting data over several pages of forms. I can pass data submitted on one page straight to the next page, but how do I go about sending it to
This is my workaround of this problem: instead of manually typing in hidden input fields, I just go foreach over $_POST:
foreach ($_POST as $key => $value) { echo '<input type="hidden" name="' . $key . '" value="' . $value . '" />'; }
Hope this helps those with lots of fields in $_POST :)