At the start of my session’d php form I give the user an option to select their Marital Status.
Depending on the result of the selection I wish to output different fields as the form is same just a few minor field changes.
How would I retrieve the option the user has selected in the previous page and then run an IF statement on it in the next page?
<input type="radio" name="selection" id="selection" group="form_type" value="1st_Marriage"/>1st Marriage
<input type="radio" name="selection" id="selection" group="form_type" value="2nd_Marriage"/>2nd Marriage
What I want to do is, retrieve the users selection and display different form fields on the next and subsequent pages further along the form’s process.
should do what you are looking for.