I'm building a form so users can request an insurance quote via the web and, as you can imagine, there is a large number of questions.
Is there a simple way to loop through the post variables and register them within the session? Or do I need to do the following for each one:
session_register('fein');
$_SESSION['fein'] = $_POST['fein'];
Even if I must reference sessions variables via a number, that's fine. I just don't want to need to write two lines of code for every value this form is passing.
Thanks.