I've been trying to figure this one out on my own and am not quite sure how to do it. I've been reading tutorials on PHP session cookies but can't figure out how to apply them to the app for what I need it for. Let me explain both of my needs.
1.) Apparently, we have form submitters that submit part of the app, and then decide they want to go back and complete additional fields that they didn't complete the first time around. Don't ask me why. I just don't know. What I need to know how to do is enable a cookie so if they happen to go back to the form page within say 3600 seconds, the form data will re-populate with what they entered originally so they don't have to retype everything. I know, this will generate a second form submission to us but that's fine.
2.) We also have a follow-up form to the first one that requests additional information. The second form has some fields at the beginning of it common to the first one like name, email and address info. How would I go about using a session cookie to auto-fill those fields that duplicate from form 1 to form 2?
Thanks!
Buster
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been trying to figure this one out on my own and am not quite sure how to do it. I've been reading tutorials on PHP session cookies but can't figure out how to apply them to the app for what I need it for. Let me explain both of my needs.
1.) Apparently, we have form submitters that submit part of the app, and then decide they want to go back and complete additional fields that they didn't complete the first time around. Don't ask me why. I just don't know. What I need to know how to do is enable a cookie so if they happen to go back to the form page within say 3600 seconds, the form data will re-populate with what they entered originally so they don't have to retype everything. I know, this will generate a second form submission to us but that's fine.
2.) We also have a follow-up form to the first one that requests additional information. The second form has some fields at the beginning of it common to the first one like name, email and address info. How would I go about using a session cookie to auto-fill those fields that duplicate from form 1 to form 2?
Thanks!
Buster