I hope someone can follow the problem I am having.
I have a three-step registration form and a confirmation page after step3
If someone wants to change a step they navigate back to the step where the field is that they
want to change, that’s no problem as I am using session variables and the items that they
selected previously appear so they know what they had selected.
The problem is this is if:
someone goes to for example step 2 for the first time, there are three fields to fill in which are
all mandatory fields, lets say they fill in the first two fields and press the button to lead them to
step 3 they have forgotten to fill in field 3 so the validation rule kick in, telling them that they
must fill in field 3, now here’s the problem the other fields that they have filled in now
become blank hence the user must fill in the other two fields again. I am using $_SESSIONS
to echo the variable in the form boxes, If I use $_POST values instead of $_SESSIONS this
problem doesn’t happen but if someone navigates back to change their values they are not
retained in the form fields as you are not echoing out session values.
I hope someone can understand what I am getting at.
Many Thanks
Graham
I have a three-step registration form and a confirmation page after step3
If someone wants to change a step they navigate back to the step where the field is that they
want to change, that’s no problem as I am using session variables and the items that they
selected previously appear so they know what they had selected.
The problem is this is if:
someone goes to for example step 2 for the first time, there are three fields to fill in which are
all mandatory fields, lets say they fill in the first two fields and press the button to lead them to
step 3 they have forgotten to fill in field 3 so the validation rule kick in, telling them that they
must fill in field 3, now here’s the problem the other fields that they have filled in now
become blank hence the user must fill in the other two fields again. I am using $_SESSIONS
to echo the variable in the form boxes, If I use $_POST values instead of $_SESSIONS this
problem doesn’t happen but if someone navigates back to change their values they are not
retained in the form fields as you are not echoing out session values.
I hope someone can understand what I am getting at.
Many Thanks
Graham