If you want to send data using POST , you will need to bring these variables as hidden input fields in your form before your users click the submit button:
<input type="hidden" name="firstname" value="<?php echo($_SESSION['firstname']); ?>" /> <input type="hidden" name="surname" value="<?php echo($_SESSION['surname']); ?>" /> <input type="hidden" name="age" value="<?php echo($_SESSION['age']); ?>" />
Alternatively, you can simply reference $_SESSION when you are at the processing stage, if applicable.
source share