StrangeOne101 / BB-Team-Section-Camp

The website for the 2017 Boys Brigade "Team Section Camp"
0 stars 0 forks source link

Make "sign up another person" retain details used #13

Open StrangeOne101 opened 6 years ago

StrangeOne101 commented 6 years ago

Issue

Clicking the link on the "Thank you" page to register another person simply takes them back to the form with none of the information filled in

Solution

When clicking the button, it will take them to register.php?retain which will fill in previous details from the last registration. These details will be stored in $_SESSION["retain-details"] as an array with keys (the keys will be the field names). Things retained will be things such as address, email, and company/unit.