Forgive this non-coder's question. I can cut and paste into functions.php with the best of them, but understand little of the mechanics.
I've created an order form that accepts a pre-defined discount code. If the code is correct, a higher price field is hidden and a lower price field becomes visible. I have figured out how to pass 2 variables to the form using a query string at the end of a URL. I intend to publish the URL + query string to select email list subscribers. Everything works, but of course if the recipient navigates to any other page of the website, the variables are lost. And when they navigate back to the form, the form conditions revert to a standard state, and the higher price.
Is there a relatively easy way to maintain the passed parameters for a session? Ideally, I'd like to allow users who navigate to the site using the URL + query string to move around the site and return to the form with the discount code still intact. A cookie? And if so, I'll need a step-by-step.