Passing PHP form variables from one page to other. The previous post explained how to pass the variables between pages using sessions. This page shows you how to accomplish the same using hidden fields.
Hidden input fields are form fields that are not visible. The user can't see or change this fields, and they are used to transmit state information between different pages. Let's use hidden fields to transport our data across our form, to the final processing script.
Ok, so nothing more than 2 input fields and a submit button to take us to step 2. In the following page, apart from the HTML form to gather membership data, we are going to need code to store the submitted data from step 1 in the session.