Hi EE and Communit-EE!
I don’t know how to explain (or what to call what needs to be done) in order to find an answer to this question in the forum, so sorry if it is answered elsewhere.
At present I have a landing page using a form that is set to capture a referral code included in segment_2 (eg: http://www.somedomain.com/site/code=123553). I have then created a hidden field that stores that segment_2 data and inserts it into the form entry data when submitted along with other user input. I’m not using any PHP, just native EE functionality.
This works fine (am using FreeeForm). But if the user leaves that page to go to another page(s) on the site, that segment data is then lost.
What I would like to do is ‘store’ that reference code in the user’s session (I assume it is how it would be done) so that it is ‘remembered’ as the user goes to other pages.
At the time when the user does choose to fill in a form (on any page) that segment_2 referral code is then retrieved from storage and inserted into the form entry data (in any given page with a form).
I figure it is possible, I just don’t know what all this is called in order to find an answer myself.
Would greatly appreciate some ‘Session Management 101 and 102’ advice - assuming this is what I need to know to achieve my goals.
Cheers for the advice - the EE community ROCKS!